X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-sonar.sh;h=17c509d5c50a749d233942dc8e20e902059c9493;hb=refs%2Fchanges%2F31%2F8431%2F1;hp=4a3bdb8787a1ac34801dca4799772aea9d32feec;hpb=d5dd1678d8da13ed05a68d566b9b7da13a4b04a9;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-sonar.sh b/shell/maven-sonar.sh index 4a3bdb87..17c509d5 100644 --- a/shell/maven-sonar.sh +++ b/shell/maven-sonar.sh @@ -21,18 +21,16 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN clean deploy \ - -Dsonar \ +$MVN clean install \ + -e -Dsonar \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ - -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \ - $MAVEN_PARAMS $MAVEN_OPTIONS + $MAVEN_OPTIONS $MAVEN_PARAMS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 $MVN $SONAR_MAVEN_GOAL \ - -Dsonar -Dsonar.host.url="$SONAR_HOST_URL" \ + -e -Dsonar -Dsonar.host.url="$SONAR_HOST_URL" \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ - -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \ - $MAVEN_PARAMS $MAVEN_OPTIONS + $MAVEN_OPTIONS $MAVEN_PARAMS