From: Jessica Wagantall Date: Thu, 4 Jul 2019 02:09:20 +0000 (-0700) Subject: Fix release-job.sh Nexus proxy var X-Git-Tag: v0.40.0~25 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=118b7cbf171aca498d1a0a3a485bad990ad2e7b6;p=releng%2Fglobal-jjb.git Fix release-job.sh Nexus proxy var Avoid the usage of project specific variables. Do not use ODLNEXUSPROXY var, but instead use a generalized variable. Projects using lf-release-jobs need to make sure they have the global variable NEXUSPROXY added in Jenkins production and Jenkins sandbox servers. The value of this variable should be the URL to the project's Nexus server. Issue: RELENG-2131 Change-Id: Ia33c106c3c0ff86e57064deb74fb3863fcd90bdc Signed-off-by: Jessica Wagantall --- diff --git a/releasenotes/notes/standardize-nexus-proxy-release-job-9818485ddbfca867.yaml b/releasenotes/notes/standardize-nexus-proxy-release-job-9818485ddbfca867.yaml new file mode 100644 index 00000000..ef9321fe --- /dev/null +++ b/releasenotes/notes/standardize-nexus-proxy-release-job-9818485ddbfca867.yaml @@ -0,0 +1,11 @@ +--- +upgrade: + - | + Projects using lf-release-jobs need to make sure they have the global + variable NEXUSPROXY added in Jenkins production and Jenkins sandbox + servers. The value of this variable should be the URL to the project's + Nexus server. +fixes: + - | + Avoid the usage of project specific variables. Do not use ODLNEXUSPROXY + var, but instead use a generalized variable. diff --git a/shell/release-job.sh b/shell/release-job.sh index a5ab1169..727aeb77 100644 --- a/shell/release-job.sh +++ b/shell/release-job.sh @@ -37,7 +37,7 @@ if [ "${LOGS_SERVER}" == 'None' ]; then exit 1 fi -NEXUS_URL="${ODLNEXUSPROXY:-$NEXUS_URL}" +NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}" release_files=$(git diff HEAD^1 --name-only -- "releases/") echo "RELEASE FILES ARE AS FOLLOWS: $release_files"