Jenkins build tool create several environment variables before job begins. This list is useful for building email templates and build steps. Here are some of the variables:
BASE=D:\jenkins
BUILD_ID=2011-08-03_13-36-43
BUILD_NUMBER=38
BUILD_TAG=jenkins-RDE_Deploy_new_artifacts-38
BUILD_URL=http://mydwbld0014.isr.hp.com:8888/job/RDE_Deploy_new_artifacts/38/
COPYARTIFACT_BUILD_NUMBER_RDE_COMPILE_OTA_AND_OTA_INTEGRATION_TESTS=9
COPYARTIFACT_BUILD_NUMBER_RDE_COMPILE_SERVER=34
EXECUTOR_NUMBER=3
HUDSON_COOKIE=00e98c35-cb73-4720-b652-d59d31225165
HUDSON_HOME=D:\jenkins
HUDSON_SERVER_COOKIE=fc397c78f6e8173566bdae8332e98594
HUDSON_URL=http://mydwbld0014.isr.hp.com:8888/
JENKINS_HOME=D:\jenkins
JENKINS_SERVER_COOKIE=fc397c78f6e8173566bdae8332e98594
JENKINS_URL=http://mydwbld0014.isr.hp.com:8888/
JOB_NAME=RDE_Deploy_new_artifacts
JOB_URL=http://mydwbld0014.isr.hp.com:8888/job/RDE_Deploy_new_artifacts/
NODE_LABELS=master
NODE_NAME=master
WORKSPACE=D:\jenkins\jobs\RDE_Deploy_new_artifacts\workspace
Other useful variables:
COMPUTERNAME=MYDWBLD0014
BASE=D:\jenkins
BUILD_ID=2011-08-03_13-36-43
BUILD_NUMBER=38
BUILD_TAG=jenkins-RDE_Deploy_new_artifacts-38
BUILD_URL=http://mydwbld0014.isr.hp.com:8888/job/RDE_Deploy_new_artifacts/38/
COPYARTIFACT_BUILD_NUMBER_RDE_COMPILE_OTA_AND_OTA_INTEGRATION_TESTS=9
COPYARTIFACT_BUILD_NUMBER_RDE_COMPILE_SERVER=34
EXECUTOR_NUMBER=3
HUDSON_COOKIE=00e98c35-cb73-4720-b652-d59d31225165
HUDSON_HOME=D:\jenkins
HUDSON_SERVER_COOKIE=fc397c78f6e8173566bdae8332e98594
HUDSON_URL=http://mydwbld0014.isr.hp.com:8888/
JENKINS_HOME=D:\jenkins
JENKINS_SERVER_COOKIE=fc397c78f6e8173566bdae8332e98594
JENKINS_URL=http://mydwbld0014.isr.hp.com:8888/
JOB_NAME=RDE_Deploy_new_artifacts
JOB_URL=http://mydwbld0014.isr.hp.com:8888/job/RDE_Deploy_new_artifacts/
NODE_LABELS=master
NODE_NAME=master
WORKSPACE=D:\jenkins\jobs\RDE_Deploy_new_artifacts\workspace
Other useful variables:
COMPUTERNAME=MYDWBLD0014
OS=Windows_NT
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1a05
JAVA_HOME=C:\jdk1.6.0_17
JAVA_INSTALLED_DIRECTORY=C:\jdk1.6.0_17\bin
Comments