Skip to content

chore: add javadoc update to batch build #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions codebuild/release/javadoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
## SPDX-License-Identifier: Apache-2.0

version: 0.2

env:
variables:
BRANCH: "master"
GH_PAGES: "gh-pages"
git-credential-helper: yes

phases:
pre_build:
commands:
- git config --global user.name "aws-crypto-tools-ci-bot"
- git config --global user.email "[email protected]"
- git checkout $BRANCH
build:
commands:
- mvn javadoc:javadoc
- cp -r ./target/site/apidocs /tmp
- git checkout $GH_PAGES
- cp -r /tmp/apidocs/* .
- git add .
- git commit -m "docs: updating javadocs"
- git push
19 changes: 16 additions & 3 deletions codebuild/release/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ batch:
buildspec: codebuild/release/release-staging.yml

# Validate CodeArtifact with supported JDK and Corretto
- identifier: validate_staging_release_openjdk_8
- identifier: validate_staging_release_openjdk8
depend-on:
- release_staging
buildspec: codebuild/release/validate-staging.yml
Expand Down Expand Up @@ -56,7 +56,7 @@ batch:
- identifier: version
depend-on:
- release_staging
- validate_staging_release_openjdk_8
- validate_staging_release_openjdk8
- validate_staging_release_openjdk11
- validate_staging_release_corretto8
- validate_staging_release_corretto11
Expand All @@ -71,7 +71,7 @@ batch:
buildspec: codebuild/release/release-prod.yml

# Validate Maven Central with supported JDK and Corretto
- identifier: validate_prod_release_openjdk_8
- identifier: validate_prod_release_openjdk8
depend-on:
- publish
buildspec: codebuild/release/validate-prod.yml
Expand Down Expand Up @@ -110,3 +110,16 @@ batch:
JAVA_ENV_VERSION: corretto11
JAVA_NUMERIC_VERSION: 11
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0

- identifier: update_javadoc
depend-on:
- validate_prod_release_openjdk8
- validate_prod_release_openjdk11
- validate_prod_release_corretto8
- validate_prod_release_corretto11
buildspec: codebuild/release/javadoc.yml
env:
variables:
JAVA_ENV_VERSION: coretto11
JAVA_NUMERIC_VERSION: 11
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0