On Fri, 2016-11-11 at 04:52 +0100, Hervé BOUTEMY wrote:

(snip again)

> > 2) I would encourage more projects to manage their Jenkins
> > configurations in version control, either by using a Jenkinsfile or
> > the
> > Job DSL plugin, it makes it much simpler to maintain your
> > configuration
> > in time and easier to collaborate on.
> 
> this is something that I'm interested to do with Maven, but I'd need:
> 
> - some pointers on how to do it: I'm not a Jenkins expert, and I
> suppose I'm 
> not the only one, then this could be useful for others too
> found [1]: that looks a good start: thank you Robert :)
> I don't know if this should be generalized, nor where to put
> information 
> (MoinMoin Jenkins Wiki page, or new infra pages on Jenkins nodes...)

The Job DSL plug-in documentation is pretty good, you can start with 

  https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin

The main thing to wrap your head around is that there will be a 'seed'
job in Jenkins which manages the rest of the jobs. This is usually a
freestyle job which invokes a 'Process DSL' build step. We keep the
config in SVN, which is an added bonus.

Other than that, the API docs are pretty good, you can see them at [2]
and there's also a DSL -> config.xml converter online at [3], so you
can see the results of your DSL before adding it to SVN.

Hope this helps,

Robert


> > [0]: https://builds.apache.org/view/S-Z/view/Sling/
> 
> [1] https://cwiki.apache.org/confluence/display/SLING/Sling+Jenkins+S
> etup

[2]: https://jenkinsci.github.io/job-dsl-plugin/#
[3]: http://job-dsl.herokuapp.com/

Reply via email to