Skip to content

Commit 9baf986

Browse files
committed
Fix update-snapshot-version yml
1 parent 3164595 commit 9baf986

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

buildspecs/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ phases:
44
build:
55
commands:
66
- mvn clean install -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
7-
- JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f 2)
7+
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
88
- echo $JAVA_VERSION
99
- |
10-
if [ "$JAVA_VERSION" \> "9" ]; then
10+
if [ "$JAVA_VERSION" -ge "9" ]; then
1111
cd test/module-path-tests
1212
mvn package
1313
mvn exec:exec -P mock-tests

buildspecs/integ-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ phases:
44
build:
55
commands:
66
- mvn clean verify -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
7-
- JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f 2)
7+
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
88
- echo $JAVA_VERSION
99
- |
10-
if [ "$JAVA_VERSION" \> "9" ]; then
10+
if [ "$JAVA_VERSION" -ge "9" ]; then
1111
cd test/module-path-tests
1212
mvn package
1313
mvn exec:exec -P integ-tests

buildspecs/on-demand-integ-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ phases:
44
build:
55
commands:
66
- mvn clean verify -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2 --fail-at-end
7-
- JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f 2)
7+
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
88
- echo $JAVA_VERSION
99
- |
10-
if [ "$JAVA_VERSION" \> "9" ]; then
10+
if [ "$JAVA_VERSION" -ge "9" ]; then
1111
cd test/module-path-tests
1212
mvn package
1313
mvn exec:exec -P integ-tests

buildspecs/update-snapshot-version.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ phases:
88

99
build:
1010
commands:
11+
- git checkout master
1112
- CURRENT_SNAPSHOT=$(cat pom.xml | grep "<version>" | head -1 | cut -d\> -f 2 | cut -d\< -f 1)
1213
- echo $CURRENT_SNAPSHOT
1314
- VERSION=`echo "$CURRENT_SNAPSHOT" | cut -d "-" -f1`
@@ -23,4 +24,4 @@ phases:
2324
- sed -i -E "s/(<version>).+(<\/version>)/\1$RELEASE_VERSION\2/" README.md
2425
- git commit -am "Update to next snapshot version $NEXT_SNAPSHOT"
2526
- git status
26-
- git push https://[email protected]/aws/aws-sdk-java-v2.git master
27+
- git push https://[email protected]/aws/aws-sdk-java-v2.git master

test/module-path-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>aws-sdk-java-pom</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.0.0-preview-13-SNAPSHOT</version>
23+
<version>2.0.0-preview-14-SNAPSHOT</version>
2424
<relativePath>../../pom.xml</relativePath>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>

0 commit comments

Comments
 (0)