Skip to main content

Jenkins system environment variable

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
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

Popular posts from this blog

Best freeware - XML editor

As a software developer, I open XML files all the time. I a heavy commercial XML editor. But nothing can compare to a small, thin and free XML editor like 'foxe'. A great feature is has is the alignment of long XML strings to readable XML format (Shift-F8). It help lot of times when the XML file was generated by some tool and was not readable. Homepage: http://www.firstobject.com/dn_editor.htm

SSL in pictures

Here is my summary on SSL (or as I like to call it 'SSL for dummies')

Jenkins error: groovy.lang.MissingPropertyException

I tried to run groovy build step and got below error. This post will describe how I solved the problem. Caught: groovy.lang.MissingPropertyException: No such property: hudson for class: script