File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 44version : 0.2
55
66env :
7+ variables :
8+ BRANCH : " master"
79 secrets-manager :
810 GPG_KEY : Maven-GPG-Keys-Credentials:Keyname
911 GPG_PASS : Maven-GPG-Keys-Credentials:Passphrase
@@ -16,6 +18,7 @@ phases:
1618 java : corretto11
1719 pre_build :
1820 commands :
21+ - git checkout $BRANCH
1922 - export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
2023 - aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
2124 - tar -xvf ~/mvn_gpg.tgz -C ~
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ phases:
1414 pre_build :
1515 commands :
1616 # get new project version
17+ - git checkout $BRANCH
1718 - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
1819 - git config --global user.name "aws-crypto-tools-ci-bot"
1920 - git config --global user.email "no-reply@noemail.local"
@@ -24,7 +25,6 @@ phases:
2425 - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
2526 - apt update
2627 - apt install gh
27- - git checkout $BRANCH
2828 build :
2929 commands :
3030 - gh version
Original file line number Diff line number Diff line change 33
44version : 0.2
55
6+ env :
7+ variables :
8+ BRANCH : " master"
9+
610phases :
711 install :
812 runtime-versions :
913 java : $JAVA_ENV_VERSION
1014 pre_build :
1115 commands :
16+ - git checkout $BRANCH
17+ - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
1218 - git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
1319 - cd busy-engineers-document-bucket/exercises/java/encryption-context-complete
1420 build :
You can’t perform that action at this time.
0 commit comments