Passing the environment variables from one job to another

88 views
Skip to first unread message

Mayank Jhawar

unread,
Jun 20, 2013, 1:04:25 PM6/20/13
to jenkins...@googlegroups.com
Hi Experts

I have two jobs
Job_1
Job_2
In Job_1 i give the parameter of the tag location on the fly it assigns that particular variable TAG to environment variable, i can see that in environment variables when a build is executed with parameters.

After Job_1 is completed another job Job_2 is executed.
I want to pass the environmental variable TAG from Job_1 to Job_2.

Can you please help me in this task as to how it can be done with or without plugins and which ones.
As i dont have any explicit knowledge about Java and new to jenkins, any help will be appreciated.

Thanks in advance.

k.thi...@comcast.net

unread,
Jun 20, 2013, 4:08:14 PM6/20/13
to jenkins...@googlegroups.com
I believe you will need to use the parameterized trigger plugin for this: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin


From: "Mayank Jhawar" <jhawar...@gmail.com>
To: jenkins...@googlegroups.com
Sent: Thursday, June 20, 2013 12:04:25 PM
Subject: Passing the environment variables from one job to another
--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages