File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 7676 buildspec-override : codebuild/ci/release-ci.yml
7777 compute-type-override : BUILD_GENERAL1_LARGE
7878 image-override : aws/codebuild/standard:3.0
79+ env-vars-for-codebuild : GITHUB_EVENT_NAME
80+ env :
81+ GITHUB_EVENT_NAME : $GITHUB_EVENT_NAME
7982 validateCI :
8083 name : Validate CI
8184 runs-on : ubuntu-latest
@@ -106,7 +109,9 @@ jobs:
106109 image-override : ${{ matrix.platform.image }}
107110 env-vars-for-codebuild : |
108111 JAVA_ENV_VERSION,
109- JAVA_NUMERIC_VERSION
112+ JAVA_NUMERIC_VERSION,
113+ GITHUB_EVENT_NAME
110114 env :
111115 JAVA_ENV_VERSION : ${{ matrix.platform.distribution }}${{ matrix.version }}
112116 JAVA_NUMERIC_VERSION : ${{ matrix.version }}
117+ GITHUB_EVENT_NAME : $GITHUB_EVENT_NAME
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ phases:
2626 - tar -xvf ~/mvn_gpg.tgz -C ~
2727 build :
2828 commands :
29- - VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION"
29+ - VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION-$GITHUB_EVENT_NAME "
3030
3131 # Remove any old artifacts with the same commit ID. This allows CI to run more than once for the same commit
3232 - |
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ phases:
1616 java : $JAVA_ENV_VERSION
1717 pre_build :
1818 commands :
19- - VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION"
19+ - VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION-$GITHUB_EVENT_NAME "
2020 - export SETTINGS_FILE=$(pwd)/codebuild/ci/settings.xml
2121 - git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
2222 - cd busy-engineers-document-bucket/exercises/java/encryption-context-complete
You can’t perform that action at this time.
0 commit comments