Hi Satpal,

Your posting gave me the indentice I needed (i.e. it confirmed the problem) 
to keep hunting for solutions, and I finally found one.

http://stackoverflow.com/questions/8884166/how-do-i-dynamically-trigger-downstream-builds-in-jenkins

Peter.

On Friday, 29 August 2014 02:32:50 UTC+10, Satpal Chander wrote:
>
> Hi All,
>
> I'm using some groovy post build script to kick off a job:
> manager.listener.logger.println("Test job needs triggering")
>     ds_job = manager.hudson.getItem('MyTestJob')
>     def params = [ new StringParameterValue('Param1', param)]
>     ds_job.scheduleBuild2(0, new Cause.UpstreamCause(manager.build), new 
> ParametersAction(params))
>
> This work fine and starts the downstream job, however if I look at the 
> Downstream Build View, it says 'No Downstream build defined for this 
> project'. 
> Therefore my question is how do i set the downstream build view from the 
> groovy postbuild script, or do i need to set the upstream build from the 
> job that has just been scheduled.
>
>
> Thanks
> Satpal
>

-- 
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/601d6c1e-40b3-4d7e-9879-54fd72d878c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to