Can we store output of some script in some variable in jenkins ?

180 views
Skip to first unread message

Krishna Kumar Tiwari

unread,
May 7, 2015, 1:48:06 PM5/7/15
to jenkins...@googlegroups.com
Hi 

Suppose i have a script(script.py) which outputs one variable in Build_id . and in Execute Shell section of the job config. Following is the commands i have specified in Execute Shell section.


python script.py 

python script1.py 

I want script1.py to use that variable in the job .

How can i do that ?

Ioannis Moutsatsos

unread,
May 12, 2015, 10:55:02 AM5/12/15
to jenkins...@googlegroups.com
You may want to check out the Active Choices plugin for script generated dynamic build parameters.
Active Choices though uses Groovy

Active Choices parameters are used as build parameters in a variety of ways.
Reply all
Reply to author
Forward
0 new messages