From df4fa6d88b97e94a1e563c3b11079217be99aa64 Mon Sep 17 00:00:00 2001 From: John Viegas <70235430+joviegas@users.noreply.github.com> Date: Wed, 7 Dec 2022 09:57:23 -0800 Subject: [PATCH] Add maven option in build specs (#3591) --- buildspecs/build.yml | 3 ++- buildspecs/integ-test.yml | 3 ++- buildspecs/stability-test.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/buildspecs/build.yml b/buildspecs/build.yml index 6bc3c715b8d5..4460766cefbe 100644 --- a/buildspecs/build.yml +++ b/buildspecs/build.yml @@ -7,9 +7,10 @@ phases: build: commands: - - mvn clean install -T1C + - mvn clean install -T1C $MAVEN_OPTIONS - JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1) - echo $JAVA_VERSION + - echo $MAVEN_OPTIONS - | if [ "$JAVA_VERSION" -ge "9" ]; then cd test/module-path-tests diff --git a/buildspecs/integ-test.yml b/buildspecs/integ-test.yml index 87dad1f187da..e4aebdaf035c 100644 --- a/buildspecs/integ-test.yml +++ b/buildspecs/integ-test.yml @@ -15,9 +15,10 @@ phases: AWS_SESSION_TOKEN=`echo $ASSUME_ROLE_OUTPUT | awk '{ print $3 }'` echo "Using role $INTEGRATION_TEST_ROLE_ARN with access key $AWS_ACCESS_KEY_ID." fi - - mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -T1C + - mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -T1C $MAVEN_OPTIONS - JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1) - echo $JAVA_VERSION + - echo $MAVEN_OPTIONS - | if [ "$JAVA_VERSION" -ge "9" ]; then cd test/module-path-tests diff --git a/buildspecs/stability-test.yml b/buildspecs/stability-test.yml index f8f2e7c3c2ff..5c26a9e37bb3 100644 --- a/buildspecs/stability-test.yml +++ b/buildspecs/stability-test.yml @@ -7,7 +7,8 @@ phases: build: commands: - - mvn clean install -P stability-tests -pl :stability-tests --am + - mvn clean install -P stability-tests -pl :stability-tests --am $MAVEN_OPTIONS + - echo $MAVEN_OPTIONS finally: - mkdir -p codebuild-test-reports - find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;