Skip to content

Commit 4214d04

Browse files
committed
Fix release buildspecs.
1 parent eea45b3 commit 4214d04

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

buildspecs/integ-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 0.2
33
phases:
44
build:
55
commands:
6-
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
6+
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbdocument-v1,!:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
77
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
88
- echo $JAVA_VERSION
99
- |

buildspecs/release-to-github.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ phases:
55
commands:
66
- git config --global user.name "AWS"
77
- git config --global user.email "<>"
8+
- 'STAGING_REPOSITORY_URL="https://[email protected]/$STAGING_REPOSITORY.git"'
89
- 'PUBLIC_REPOSITORY_URL="https://[email protected]/aws/aws-sdk-java-v2.git"'
910

1011
build:
1112
commands:
12-
- git checkout release
13+
- mkdir release
14+
- cd release
15+
-
16+
- git clone -o staging -b release $STAGING_REPOSITORY_URL .
1317
- RELEASE_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
1418
-
1519
- git remote add --fetch public $PUBLIC_REPOSITORY_URL
16-
1720
- git tag -a $RELEASE_VERSION -m "AWS SDK for Java v2 ($RELEASE_VERSION)"
1821
-
1922
- git push public HEAD:release

buildspecs/release-to-maven.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ phases:
77

88
pre_build:
99
commands:
10-
- TMP='tmp_settings'
11-
10+
- ROOT=`pwd`
11+
- CREDENTIALS=$ROOT/credentials
12+
- SETTINGS_XML=$CREDENTIALS/settings.xml
13+
- GPG_HOME=$CREDENTIALS/gpghome
1214
build:
1315
commands:
14-
- mkdir -p $TMP
15-
- aws s3 cp s3://aws-java-sdk-credentials/settings.xml $TMP/settings.xml
16+
- mkdir -p $CREDENTIALS
17+
- aws s3 cp s3://aws-java-sdk-release-credentials/ $CREDENTIALS/ --recursive
1618
-
17-
- mvn clean deploy -Ppublishing -DperformRelease -Dspotbugs.skip -DskipTests -Dcheckstyle.skip -s $TMP/settings.xml -Ddoclint=none -pl !:dynamodbdocument-v1,!:dynamodbmapper-v1,!:protocol-tests,!:protocol-tests-core,!:codegen-generated-classes-test,!:sdk-benchmarks,!:module-path-tests
18-
- mvn org.sonatype.plugins:nexus-staging-maven-plugin:release -Ppublishing -s $TMP/settings.xml
19+
- mvn clean deploy -Ppublishing -DperformRelease -Dspotbugs.skip -DskipTests -Dcheckstyle.skip -Ddoclint=none -pl !:dynamodbdocument-v1,!:dynamodbmapper-v1,!:protocol-tests,!:protocol-tests-core,!:codegen-generated-classes-test,!:sdk-benchmarks,!:module-path-tests -DautoReleaseAfterClose=true -DstagingProgressTimeoutMinutes=30

buildspecs/update-master-from-release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@ phases:
1212
- mkdir release
1313
- cd release
1414
-
15-
- git clone -o public -b release $PUBLIC_REPOSITORY_URL
15+
- git clone -o public -b release $PUBLIC_REPOSITORY_URL .
1616
-
1717
- RELEASE_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
18-
- echo "Release version: $RELEASE_VERSION"
18+
- echo "Release version - $RELEASE_VERSION"
1919
-
2020
- MAJOR=$(echo $RELEASE_VERSION | cut -d'.' -f1)
2121
- MINOR=$(echo $RELEASE_VERSION | cut -d'.' -f2)
2222
- POINT=$(echo $RELEASE_VERSION | cut -d'.' -f3)
2323
- NEW_VERSION_SNAPSHOT="$MAJOR.$MINOR.$((POINT + 1))-SNAPSHOT"
24-
- echo "New shapshot version: $NEW_VERSION_SNAPSHOT"
24+
- echo "New shapshot version - $NEW_VERSION_SNAPSHOT"
2525
-
2626
- git checkout master
27-
- git merge origin/release --no-edit
27+
- git merge public/release --no-edit
2828
-
2929
- mvn versions:set -DnewVersion=$NEW_VERSION_SNAPSHOT -DgenerateBackupPoms=false -DprocessAllModules=true
3030
- sed -i -E "s/(<version>).+(<\/version>)/\1$RELEASE_VERSION\2/" README.md
3131
-
32-
- git commit -am "Update to next snapshot version: $NEXT_VERSION_SNAPSHOT"
32+
- 'git commit -am "Update to next snapshot version: $NEXT_VERSION_SNAPSHOT"'
33+
-
34+
- git push

0 commit comments

Comments
 (0)