22

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.

dur
  • 15,689
  • 25
  • 79
  • 125
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348

3 Answers3

42

There is

  • a quite extensive list in the JENKINS wiki (or if you prefer in the Hudson Wiki,
  • there is a link to it below the textarea where you specify your build steps (see below)
  • you could run
    env
    as bash script in a build step to find out which additional variables are inherited on your system:

enter image description here

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
peritus
  • 3,732
  • 2
  • 22
  • 17
13

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

RAM237
  • 903
  • 11
  • 17