Merge "Let NEXUSPROXY override NEXUS_URL if both are set"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 23 Oct 2017 15:55:34 +0000 (15:55 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Mon, 23 Oct 2017 15:55:34 +0000 (15:55 +0000)
24 files changed:
1  2 
.jjb-test/expected-xml/gerrit-ciman-packer-merge-centos-java-builder
.jjb-test/expected-xml/gerrit-ciman-packer-merge-centos-mininet
.jjb-test/expected-xml/gerrit-ciman-packer-merge-ubuntu1604-java-builder
.jjb-test/expected-xml/gerrit-ciman-packer-merge-ubuntu1604-mininet
.jjb-test/expected-xml/gerrit-ciman-packer-verify
.jjb-test/expected-xml/gerrit-maven-maven-clm-master
.jjb-test/expected-xml/gerrit-maven-maven-javadoc-publish-master
.jjb-test/expected-xml/gerrit-maven-maven-javadoc-verify-master
.jjb-test/expected-xml/gerrit-maven-maven-release-master
.jjb-test/expected-xml/gerrit-maven-maven-verify-deps-master-mvn33-openjdk8
.jjb-test/expected-xml/gerrit-maven-maven-verify-master-mvn33-openjdk8
.jjb-test/expected-xml/gerrit-maven-sonar
.jjb-test/expected-xml/gerrit-rtd-rtd-verify-master
.jjb-test/expected-xml/github-ciman-packer-merge-centos-java-builder
.jjb-test/expected-xml/github-ciman-packer-merge-centos-mininet
.jjb-test/expected-xml/github-ciman-packer-merge-ubuntu1604-java-builder
.jjb-test/expected-xml/github-ciman-packer-merge-ubuntu1604-mininet
.jjb-test/expected-xml/github-ciman-packer-verify
.jjb-test/expected-xml/github-maven-maven-clm-master
.jjb-test/expected-xml/github-maven-maven-javadoc-publish-master
.jjb-test/expected-xml/github-maven-maven-javadoc-verify-master
.jjb-test/expected-xml/github-maven-maven-release-master
.jjb-test/expected-xml/github-maven-maven-verify-master-mvn33-openjdk8
.jjb-test/expected-xml/github-maven-sonar

@@@ -76,7 -76,7 +76,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -315,7 -315,7 +315,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=centos
  PACKER_TEMPLATE=java-builder
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -494,7 -494,7 +494,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -620,7 -620,7 +620,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -76,7 -76,7 +76,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -315,7 -315,7 +315,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=centos
  PACKER_TEMPLATE=mininet
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -494,7 -494,7 +494,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -620,7 -620,7 +620,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -76,7 -76,7 +76,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -315,7 -315,7 +315,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=ubuntu1604
  PACKER_TEMPLATE=java-builder
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -494,7 -494,7 +494,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -620,7 -620,7 +620,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -76,7 -76,7 +76,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -315,7 -315,7 +315,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=ubuntu1604
  PACKER_TEMPLATE=mininet
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -494,7 -494,7 +494,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -620,7 -620,7 +620,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -76,7 -76,7 +76,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -384,7 -384,7 +384,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -510,7 -510,7 +510,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -349,7 -344,7 +349,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -475,7 -470,7 +475,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -246,7 -241,7 +246,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -528,7 -523,7 +528,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -654,7 -649,7 +654,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -382,7 -377,7 +382,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -508,7 -503,7 +508,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -251,7 -246,7 +251,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -558,7 -553,7 +558,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -684,7 -679,7 +684,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -543,7 -538,7 +543,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -669,7 -664,7 +669,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -514,7 -509,7 +514,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -640,7 -635,7 +640,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -74,11 -74,6 +74,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -433,7 -428,7 +433,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -559,7 -554,7 +559,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -81,7 -81,7 +81,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
      <userRemoteConfigs>
        <hudson.plugins.git.UserRemoteConfig>
          <name>origin</name>
 -        <refspec>$GERRIT_REFSPEC</refspec>
 +        <refspec/>
          <url>$GIT_URL/$PROJECT</url>
          <credentialsId>test-credential</credentialsId>
        </hudson.plugins.git.UserRemoteConfig>
@@@ -327,7 -327,7 +327,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -453,7 -453,7 +453,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -71,7 -71,7 +71,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
@@@ -163,7 -163,7 +163,7 @@@ zxiiro</whitelist
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -273,7 -273,7 +273,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=centos
  PACKER_TEMPLATE=java-builder
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -452,7 -452,7 +452,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -578,7 -578,7 +578,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -71,7 -71,7 +71,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
@@@ -163,7 -163,7 +163,7 @@@ zxiiro</whitelist
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -273,7 -273,7 +273,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=centos
  PACKER_TEMPLATE=mininet
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -452,7 -452,7 +452,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -578,7 -578,7 +578,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -71,7 -71,7 +71,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
@@@ -163,7 -163,7 +163,7 @@@ zxiiro</whitelist
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -273,7 -273,7 +273,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=ubuntu1604
  PACKER_TEMPLATE=java-builder
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -452,7 -452,7 +452,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -578,7 -578,7 +578,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -71,7 -71,7 +71,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
@@@ -163,7 -163,7 +163,7 @@@ zxiiro</whitelist
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -273,7 -273,7 +273,7 @@@ exit 
        <info>
          <propertiesContent>PACKER_PLATFORM=ubuntu1604
  PACKER_TEMPLATE=mininet
 -PACKER_VERSION=1.0.2
 +PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -452,7 -452,7 +452,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -578,7 -578,7 +578,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -71,7 -71,7 +71,7 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
          <hudson.model.StringParameterDefinition>
            <name>PACKER_VERSION</name>
            <description>Packer version to download and install.</description>
 -          <defaultValue>1.0.2</defaultValue>
 +          <defaultValue>1.1.1</defaultValue>
          </hudson.model.StringParameterDefinition>
        </parameterDefinitions>
      </hudson.model.ParametersDefinitionProperty>
      </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
      <EnvInjectBuilder>
        <info>
 -        <propertiesContent>PACKER_VERSION=1.0.2
 +        <propertiesContent>PACKER_VERSION=1.1.1
  </propertiesContent>
        </info>
      </EnvInjectBuilder>
@@@ -328,7 -328,7 +328,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -454,7 -454,7 +454,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -69,11 -69,6 +69,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -344,7 -339,7 +344,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -470,7 -465,7 +470,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -69,11 -69,6 +69,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -222,7 -217,7 +222,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -504,7 -499,7 +504,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -630,7 -625,7 +630,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -69,11 -69,6 +69,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -344,7 -339,7 +344,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -470,7 -465,7 +470,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -69,11 -69,6 +69,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -219,7 -214,7 +219,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -526,7 -521,7 +526,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -652,7 -647,7 +652,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -69,11 -69,6 +69,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -470,7 -465,7 +470,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -596,7 -591,7 +596,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;
  
@@@ -69,11 -69,6 +69,11 @@@ For example '&lt;1.0.0' or '&gt;=1.0.0,
  </description>
            <defaultValue>&lt;1.0.0</defaultValue>
          </hudson.model.StringParameterDefinition>
 +        <hudson.model.StringParameterDefinition>
 +          <name>M2_HOME</name>
 +          <description>Maven selector to be used by shell scripts</description>
 +          <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
 +        </hudson.model.StringParameterDefinition>
          <hudson.model.StringParameterDefinition>
            <name>MAVEN_OPTS</name>
            <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
@@@ -398,7 -393,7 +398,7 @@@ echo &quot;---&gt; create-netrc.sh&quot
  # Ensure we fail the job if any steps fail.
  set -eu -o pipefail
  
- NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+ NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
  CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
      -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
      -v x:username -o &quot;:&quot; -v x:password \
@@@ -524,7 -519,7 +524,7 @@@ the
  
      echo &quot;WARNING: Logging server not set&quot;
  else
-     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
+     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
      NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
      BUILD_URL=&quot;${BUILD_URL}&quot;