For pipelines take a look to the environment directive documentation 
https://jenkins.io/doc/pipeline/tour/environment also you can define variable 
by asigning a value to env variable

script { env.VARIABLE_NAME = ’value’ }

See also 
https://jenkins.io/doc/book/pipeline/shared-libraries/
https://wiki.jenkins.io/plugins/servlet/mobile?contentId=58000129#content/view/58000129


To set environment variables or properties at Jenkins start time you could use 
init scripts 
https://wiki.jenkins.io/plugins/servlet/mobile?contentId=38142057#content/view/3814205
 or CasC https://jenkins.io/projects/jcasc/

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d0155dbc-5bc5-4b35-ae18-8c3690844f1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to