Jenkins build-flow plugin "build" command

时间:2015-07-28 15:59:39

标签: jenkins-plugins dsl jenkins-cli

I suspect there is more fundamental learning I need before I attempt to use the build-flow plugin.

Using the DSL plugin I created a Seed job which created sub-jobs:

FromTemplate-Job1 to FromTemplate-Job3

Ultimately I want to run these in parallel. However, for now, I just want to run FromTemplate-Job1

I thought this could just use build("FromTemplate-Job1") to run the job, however this generates the exception:

groovy.lang.MissingMethodException: No signature of method: script1438099035271418250533.build() is applicable for argument types: (java.lang.String) values: [FromTemplate-Job1]

There is obviously something fundamental that I need to understand?

2 个答案:

答案 0 :(得分:0)

Mahi - 您的问题是正确的问题 - 谢谢。 我选择了FreeStyle作为工作类型而不是Build Flow - 它现在正在运作!

答案 1 :(得分:0)

DSL 构建命令执行自由样式作业。

它不会执行使用multijob或dsl job配置的作业。