X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=.jjb-test%2Fexpected-xml%2Fgithub-maven-sonar;h=c0c8c2a91d43ad7a9757f3968e90525cb97c3834;hb=refs%2Fchanges%2F89%2F8389%2F1;hp=a5a7b686b76ae0796aaefba0ac8793efa4bbb42d;hpb=d5dd1678d8da13ed05a68d566b9b7da13a4b04a9;p=releng%2Fglobal-jjb.git diff --git a/.jjb-test/expected-xml/github-maven-sonar b/.jjb-test/expected-xml/github-maven-sonar index a5a7b686..c0c8c2a9 100644 --- a/.jjb-test/expected-xml/github-maven-sonar +++ b/.jjb-test/expected-xml/github-maven-sonar @@ -10,8 +10,9 @@ build-vm false - + $GIT_URL/$PROJECT/example-org/releng/ciman + @@ -69,6 +70,11 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. <1.0.0 + + M2_HOME + Maven selector to be used by shell scripts + /w/tools/hudson.tasks.Maven_MavenInstallation/mvn33 + MAVEN_OPTS Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m @@ -90,7 +96,20 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. STAGING_PROFILE_ID Nexus staging profile ID. - uuddlrlrba + + + + ARCHIVE_ARTIFACTS + Artifacts to archive to the logs server. + + + + SONAR_MAVEN_GOAL + Maven goals to pass to the Sonar call. Typically sonar:sonar +however to use a specific version of the sonar-maven-plugin we +can call "org.codehaus.mojo:sonar-maven-plugin:3.3.0.603:sonar". + + sonar:sonar @@ -107,31 +126,25 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. - ** + $sha1 - - false - false - true - false false Default - - true - - false - false + + + false true false + false 10 @@ -145,8 +158,11 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. false + + ^recheck$ + false true true @@ -175,9 +191,7 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. - SONAR_HOST_URL=$SONAR_URL -SONAR_MAVEN_GOAL=sonar:sonar - + SONAR_HOST_URL=$SONAR_URL @@ -246,7 +260,7 @@ $MVN clean deploy \ --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 @@ -255,7 +269,7 @@ $MVN $SONAR_MAVEN_GOAL \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \ - $MAVEN_PARAMS $MAVEN_OPTIONS + $MAVEN_OPTIONS $MAVEN_PARAMS @@ -275,11 +289,11 @@ exit 0 - + **/**.exec **/classes **/src/main/java - + false **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** 10 @@ -354,9 +368,9 @@ SAR_DIR="$WORKSPACE/archives/sar-reports" mkdir -p "$SAR_DIR" cp "$SYSSTAT_PATH/"* "$_" # convert sar data to ascii format -while IFS="" read -r s +while IFS="" read -r sarfilenum do - [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}" + [ -f "$sarfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum//[!0-9]/}" done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true) # DON'T fail build if script fails. @@ -393,7 +407,7 @@ echo "---> create-netrc.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail -NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}" +NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \ -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \ -v x:username -o ":" -v x:password \ @@ -403,7 +417,7 @@ machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}') user=$(echo "$CREDENTIAL" | cut -f1 -d:) pass=$(echo "$CREDENTIAL" | cut -f2 -d:) -echo "machine $machine login $user password $pass" > ~/.netrc +echo "machine ${machine%:*} login $user password $pass" > ~/.netrc @@ -519,7 +533,7 @@ then echo "WARNING: Logging server not set" else - NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}" + NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}" BUILD_URL="${BUILD_URL}" @@ -591,5 +605,14 @@ rm ~/.netrc test-credential + + + + npmrc + $HOME/.npmrc + + + +