Skip to content

Commit d88190b

Browse files
authored
chore: add javadoc update to batch build (#376)
1 parent 487be4b commit d88190b

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

codebuild/release/javadoc.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
## SPDX-License-Identifier: Apache-2.0
3+
4+
version: 0.2
5+
6+
env:
7+
variables:
8+
BRANCH: "master"
9+
GH_PAGES: "gh-pages"
10+
git-credential-helper: yes
11+
12+
phases:
13+
pre_build:
14+
commands:
15+
- git config --global user.name "aws-crypto-tools-ci-bot"
16+
- git config --global user.email "[email protected]"
17+
- git checkout $BRANCH
18+
build:
19+
commands:
20+
- mvn javadoc:javadoc
21+
- cp -r ./target/site/apidocs /tmp
22+
- git checkout $GH_PAGES
23+
- cp -r /tmp/apidocs/* .
24+
- git add .
25+
- git commit -m "docs: updating javadocs"
26+
- git push

codebuild/release/release.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ batch:
1212
buildspec: codebuild/release/release-staging.yml
1313

1414
# Validate CodeArtifact with supported JDK and Corretto
15-
- identifier: validate_staging_release_openjdk_8
15+
- identifier: validate_staging_release_openjdk8
1616
depend-on:
1717
- release_staging
1818
buildspec: codebuild/release/validate-staging.yml
@@ -56,7 +56,7 @@ batch:
5656
- identifier: version
5757
depend-on:
5858
- release_staging
59-
- validate_staging_release_openjdk_8
59+
- validate_staging_release_openjdk8
6060
- validate_staging_release_openjdk11
6161
- validate_staging_release_corretto8
6262
- validate_staging_release_corretto11
@@ -71,7 +71,7 @@ batch:
7171
buildspec: codebuild/release/release-prod.yml
7272

7373
# Validate Maven Central with supported JDK and Corretto
74-
- identifier: validate_prod_release_openjdk_8
74+
- identifier: validate_prod_release_openjdk8
7575
depend-on:
7676
- publish
7777
buildspec: codebuild/release/validate-prod.yml
@@ -110,3 +110,16 @@ batch:
110110
JAVA_ENV_VERSION: corretto11
111111
JAVA_NUMERIC_VERSION: 11
112112
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0
113+
114+
- identifier: update_javadoc
115+
depend-on:
116+
- validate_prod_release_openjdk8
117+
- validate_prod_release_openjdk11
118+
- validate_prod_release_corretto8
119+
- validate_prod_release_corretto11
120+
buildspec: codebuild/release/javadoc.yml
121+
env:
122+
variables:
123+
JAVA_ENV_VERSION: coretto11
124+
JAVA_NUMERIC_VERSION: 11
125+
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0

0 commit comments

Comments
 (0)