If you meant about using the promote build plugin, you can add some input 
parameters in the job and then use those parameters within the promotion 
stage, since they are populated. For instance:

<https://lh3.googleusercontent.com/-WWNQlSNxsQA/WjE-rsoAGYI/AAAAAAAAK54/0GG79bK01MAKZjlHcD1_SWWRaZ3IlsHXACLcBGAs/s1600/Screen%2BShot%2B2017-12-13%2Bat%2B14.52.12.png>

<https://lh3.googleusercontent.com/-TPlS7odZGrQ/WjE_A2Bd0wI/AAAAAAAAK6A/HU7SwBShISwwACWL_PUMtEtrNbch9OEvACLcBGAs/s1600/Screen%2BShot%2B2017-12-13%2Bat%2B14.52.57.png>



<https://lh3.googleusercontent.com/-divi4Au9Gco/WjE--UHuW2I/AAAAAAAAK58/L81Org4x6IwMQeWyarcJv7UY7BKd7ThEQCLcBGAs/s1600/Screen%2BShot%2B2017-12-13%2Bat%2B14.53.07.png>


Then when you promote it  yo uwill see something like 


Started by user anonymous
Building in workspace /var/jenkins_home/workspace/promote
Promoting promote #3 <http://localhost:8080/job/promote/3/>
[promote] $ /bin/sh -xe /tmp/jenkins389158040050727821.sh
+ echo bar
bar
build hudson.tasks.Shell@23588bc7 SUCCESS
Finished: SUCCESS



Cheers

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/61d21cdd-f90d-40f9-b6fd-82b4bb164c00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to