如何从jenkins脚本控制台启动作业的构建?
尝试过:
for(job in Hudson.instance.getView(view_name).items) {
job.startBuild()
}
错误: groovy.lang.MissingMethodException:方法的无签名:hudson.model.FreeStyleProject.startBuild()适用于参数类型:()值:[]
答案 0 :(得分:0)
您可以将run.scheduleBuild
用作example
cause = new hudson.model.Cause.RemoteCause(startServer, startNote) failedRuns.each{run -> run.scheduleBuild(cause)}