If you are using the "Block until the triggered projects finish their 
builds" there are environment parameters that are added by the build step 
that will provide you with triggered project name, build number and result. 
Check the help item or the wiki.[1]

in version 2.17
the variables provided are

 With this option enabled the builds for the projects triggered are available 
as 
  Env variables for future build steps
  *LAST_TRIGGERED_JOB_NAME*="Last project started"
  *TRIGGERED_JOB_NAMES*="Comma separated list of all triggered projects"
  *TRIGGERED_BUILD_NUMBER_<project name>*="Last build number triggered"
  *TRIGGERED_BUILD_NUMBERS_<project name>*="Comma separated list of build 
numbers triggered"
  *TRIGGERED_BUILD_RESULT_<project name>*="Last triggered build result of 
project"
  *TRIGGERED_BUILD_RESULT_<project name>_RUN_<build number**>*="Result of 
triggered build for build number"
  *TRIGGERED_BUILD_RUN_COUNT_project name>*="Number of builds triggered for the 
project"
  
  All Project names have characters not a-zA-Z or 0-9 replaced by 
  _(multiple characters are condensed into a single _).



These could then be used a copy artifact from project [2] in the next step 
if that allows specification of the build number as a Env variable.

[1] https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin
[2] https://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin


Chris.

On Friday, March 8, 2013 10:10:52 PM UTC, Bill Wonch wrote:
>
> Hi everyone -
>
> I have a job that runs "Trigger/Call builds on another project" and I need 
> a way to get that build number (or a couple of files that build generates) 
> back to the upstream build for some validation.  Is that possible?  I'm 
> open to a groovy script or whatever.
>
> Thanks!
>
> Bill
>

-- 
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