X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcreate-netrc.sh;h=52f239d3df8bf690821d26da1439a9c456836e9d;hb=7a1a1bdacd238191b310f245f164da0b45dcbd97;hp=2c7f7823edd3d2d8052812c54d814113d65cff17;hpb=3577c6f3469752c9ff64742002a5b235d774001b;p=releng%2Fglobal-jjb.git diff --git a/shell/create-netrc.sh b/shell/create-netrc.sh index 2c7f7823..52f239d3 100644 --- a/shell/create-netrc.sh +++ b/shell/create-netrc.sh @@ -13,7 +13,15 @@ echo "---> create-netrc.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail -NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" +ALT_NEXUS_URL="${ALT_NEXUS_URL:-}" + +if [ -z "$ALT_NEXUS_URL" ] +then + NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" +else + NEXUS_URL="${ALT_NEXUS_URL}" +fi + 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 \