Reputation: 81930
The question is in the title
I know about BUILD_NAME
and BUILD_ID
and BUILD_TAG
and I have seen somewhere a list of properties, but I can't find it anymore.
Upvotes: 22
Views: 54722
Reputation: 1035
To view available env vars in your case (since they also depend on installed plugins) just go to this URL:
https://<your-jenkins>/env-vars.html
Replace https://<your-jenkins>/
with how you used to access your Jenkins (it can be, just for instance
http://localhost:8080/env-vars.html
or
https://linux-jenkins-1:8443/env-vars.html
).
Upvotes: 13
Reputation: 232
Updating the link to Jenkins WIKI: https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below
Upvotes: 3
Reputation: 3840
There is
env
as bash script in a build step to find out which additional variables are inherited on your system:Upvotes: 42