From 118b7cbf171aca498d1a0a3a485bad990ad2e7b6 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Wed, 3 Jul 2019 19:09:20 -0700 Subject: [PATCH] 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 --- .../standardize-nexus-proxy-release-job-9818485ddbfca867.yaml | 11 +++++++++++ shell/release-job.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/standardize-nexus-proxy-release-job-9818485ddbfca867.yaml 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" -- 2.16.6