Really two issues here . . .

On one level, passing the changelist # is easy to pass via Artifacts:

SET P4_CHANGELIST > ChangeListNumber.txt

In the second job

SET /P P4_CHANGELIST < ChangeListNumber.txt

Then setup to pass ChangeListNumber.txt between the jobs using Jenkins 
Artifacts.

The second thing to realize though (and this become more and more of an issue 
as more and more jobs become involved) . . . only the head job knows who the 
culprits are . . . so only the head job can properly email the people who 
broken the build on failure.

Frank

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Roman Yushin
Sent: Friday, March 01, 2013 7:33 AM
To: jenkinsci-users@googlegroups.com
Subject: How to pass ${CHANGES} from one Jenkins task to another?

Hi Jenkins users.
I am using parametrizing trigger plugin to run jobs one by one (see screenshot).
The first triggered job get changes from the Perforce repository using perforce 
plugin.
And I need to pass these changes to the job below. So, second job should 
display these changes too (now it displays "No changes in any of the builds.")
Could you please help me with this? I tried to use "predefined parameters", but 
seems I am doing something wrong..

Thanks!

[https://lh4.googleusercontent.com/-4e1zOfVqV1A/UTDIW32oPVI/AAAAAAAADF8/qhANYtzMVRc/s320/jenkins_qw.jpg]<https://lh4.googleusercontent.com/-4e1zOfVqV1A/UTDIW32oPVI/AAAAAAAADF8/qhANYtzMVRc/s1600/jenkins_qw.jpg>

--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to