def job = hudson.model.Hudson.instance.getJob("job")def params = new StringParameterValue('PARAMTEST', "somestring") def paramsAction = new ParametersAction(params) def cause = new hudson.model.Cause.UpstreamCause(currentBuild)def causeAction = new hudson.model.CauseAction(cause) hudson.model.Hudson.instance.queue.schedule(job, 0, causeAction, paramsAction)
这终于对我有用。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)