Skip to content

Fix update-snapshot-version yml #821

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 1 commit into from
Nov 14, 2018
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
4 changes: 2 additions & 2 deletions buildspecs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ phases:
build:
commands:
- mvn clean install -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
- JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f 2)
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- |
if [ "$JAVA_VERSION" \> "9" ]; then
if [ "$JAVA_VERSION" -ge "9" ]; then
cd test/module-path-tests
mvn package
mvn exec:exec -P mock-tests
Expand Down
4 changes: 2 additions & 2 deletions buildspecs/integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ phases:
build:
commands:
- mvn clean verify -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
- JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f 2)
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- |
if [ "$JAVA_VERSION" \> "9" ]; then
if [ "$JAVA_VERSION" -ge "9" ]; then
cd test/module-path-tests
mvn package
mvn exec:exec -P integ-tests
Expand Down
4 changes: 2 additions & 2 deletions buildspecs/on-demand-integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ phases:
build:
commands:
- 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
- JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f 2)
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- |
if [ "$JAVA_VERSION" \> "9" ]; then
if [ "$JAVA_VERSION" -ge "9" ]; then
cd test/module-path-tests
mvn package
mvn exec:exec -P integ-tests
Expand Down
3 changes: 2 additions & 1 deletion buildspecs/update-snapshot-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ phases:

build:
commands:
- git checkout master
- CURRENT_SNAPSHOT=$(cat pom.xml | grep "<version>" | head -1 | cut -d\> -f 2 | cut -d\< -f 1)
- echo $CURRENT_SNAPSHOT
- VERSION=`echo "$CURRENT_SNAPSHOT" | cut -d "-" -f1`
Expand All @@ -23,4 +24,4 @@ phases:
- sed -i -E "s/(<version>).+(<\/version>)/\1$RELEASE_VERSION\2/" README.md
- git commit -am "Update to next snapshot version $NEXT_SNAPSHOT"
- git status
- git push https://[email protected]/aws/aws-sdk-java-v2.git master
- git push https://[email protected]/aws/aws-sdk-java-v2.git master
2 changes: 1 addition & 1 deletion test/module-path-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.0.0-preview-13-SNAPSHOT</version>
<version>2.0.0-preview-14-SNAPSHOT</version>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the short term fix. I will figure out a way to update the parent version in this module.

<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down