Fix release-job.sh Nexus proxy var 73/16073/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 4 Jul 2019 02:09:20 +0000 (19:09 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 4 Jul 2019 02:09:20 +0000 (19:09 -0700)
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 <jwagantall@linuxfoundation.org>
releasenotes/notes/standardize-nexus-proxy-release-job-9818485ddbfca867.yaml [new file with mode: 0644]
shell/release-job.sh

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 (file)
index 0000000..ef9321f
--- /dev/null
@@ -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.
index a5ab116..727aeb7 100644 (file)
@@ -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"