Jenkins Variables

43 views
Skip to first unread message

Gilad Baruchian

unread,
Jun 8, 2016, 8:37:36 AM6/8/16
to Jenkins Developers
As I understand, the way to define variables in a jenkins job is to user environment variables injection (variables I define in the job and when i execute a build jenkins set them as windows environment variables).
Can it be a problem if i run 2 jobs at the same time that have the same variable names? wouldn't they override each other?

Robert Sandell

unread,
Jun 8, 2016, 11:08:45 AM6/8/16
to jenkin...@googlegroups.com
No, the environment variables are passed along to each step's perform method, and set as environment to each build's spawned sub-process to the agent.

On Wed, Jun 8, 2016 at 2:37 PM, Gilad Baruchian <gila...@gmail.com> wrote:
As I understand, the way to define variables in a jenkins job is to user environment variables injection (variables I define in the job and when i execute a build jenkins set them as windows environment variables).
Can it be a problem if i run 2 jobs at the same time that have the same variable names? wouldn't they override each other?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/37385289-f860-4fa3-aa71-3e0e1aaf3a80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.
Reply all
Reply to author
Forward
0 new messages