Hi,

On 03 Sep 2015, at 01:36, milki milk <nitesha...@gmail.com> wrote:

> So the article only mentions 2 methods - Cloudbees Template Plugin and 
> Jenkins Job DSL. There are at least two other alternatives I know about - 
> Jenkins Job Builder and Workflow. Were these and possibly other alternatives 
> explored as well?

Well, the article was already quite long anyway, didn't want to bore everyone 
away :)

Job DSL Plugin and Jenkins Job Builder both try to solve the same problem, but 
have different approaches. Jenkins Job Builder runs as an external process, 
which has the disadvantage that it does not know about current Jenkins state, 
so it has to keep it's own cache. Also, it uses Yaml for its templates, which 
limits the expressive power of what templates can do. They had to invent their 
own syntax for interpolating variables, and do inheritance, for example.

There are also similarities. Both can only do what you could already do 
manually with Jenkins, but now do it in an automated way. Both have to solve 
the problem to support all the different Jenkins plugins out there, and both 
provide a nice way to easily use not yet supported plugins yourself. 

Although its Yaml files are not a programming language, one could still call 
Jenkins Job Builder from a programming language, so I guess we could have done 
some of the stuff that we did with Job DSL Plugin. But we already had an 
in-house mechanism using Rest API, which suffered from the limitation of not 
having access to current Jenkins internal state, so we didn't want to go down 
that road again.


Now, Workflow Plugin is an entirely different beast, which solves different 
problem. It defines a new type of job with new capabilities and as such is not 
really an alternative, but more an enhancement to the other two. It is 
perfectly valid to use Job-DSL Plugin to generate Workflow jobs for example, 
and we are currently investigating how to incorporate this in our existing jobs.

Marc

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D68D1D29-34B1-43B7-8950-2A11F0114D15%40ebay.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to