schedulebuild2 not setting downstream build

26 views
Skip to first unread message

Satpal Chander

unread,
Aug 28, 2014, 12:32:50 PM8/28/14
to jenkins...@googlegroups.com
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

Peter Wiseman

unread,
Nov 25, 2014, 8:11:05 AM11/25/14
to jenkins...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages