Prepend variables in properties file with OPNFV 38/238/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 1 Apr 2015 12:31:27 +0000 (14:31 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 1 Apr 2015 12:31:27 +0000 (14:31 +0200)
Prevent variable clashes in case when they are sourced within
Jenkins job by prepending all variables with OPNFV.

JIRA: OCTO-26

Change-Id: Ia6c39ff5096dd15e7ce972314d78baa02473ea19
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis.yml

index a987ff7..2a53f7d 100644 (file)
 
             # save information regarding artifact into file
             (
-                echo "GIT_URL=$(git config --get remote.origin.url)"
-                echo "SHA1=$(git rev-parse HEAD)"
-                echo "ARTIFACT_URL=$GS_URL/opnfv-$BUILD_ID.iso"
-                echo "BUILD_URL=$BUILD_URL"
-                echo "BUILD=OK"
+                echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
+                echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
+                echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$BUILD_ID.iso"
+                echo "OPNFV_BUILD_URL=$BUILD_URL"
+                echo "OPNFV_BUILD=OK"
             ) > opnfv-$BUILD_ID.properties
 
             # copy artifact property file as latest.properties