Is jenkins build a description of an environment variable?

Is jenkins assembly description environment variable?

I have a task that sets up a description of the build, and I want to pass this value as a "predefined parameter" to the "Trigger-parameterized assembly for another project". Is there something like the $ {BUILD_DESCRIPTION} variable that I can use?

+4
source share
2 answers

This can be done by writing the assembly description in the properties file somewhere under the workspace up, in the format

builddesc=My Build Description 

Then you can use the "Parameters from Properties" option in the "Serial Assembly with Trigger Setup on Another Project" section, and the assembly description will be available as an environment variable (with the same name that you gave to the properties file) in your downstream assembly.

+2
source

No. You can find a list of all environment variables in http://<yourjenkins>/env-vars.html/ .

+3
source

Source: https://habr.com/ru/post/1444652/


All Articles