Experiences with automatically creating/configuring Jenkins jobs from command line

2014-05-12 Thread Christoph Kutzinski
Hi all,



we want to create a project template to make it easier to create new services from scratch.

As part of this template we want to have a single step to create a new Jenkins job for this service.

For example, this should be a simple Gradle call: gradle createJenkinsJob which would create a new Job and configure it to some defaults -

e.g. e-mail notification settings, Checkstyle/FindBugs/Warnings report.

Additionally, It would be good to be able to create a build pipeline - e.g. compile/test - integration test - deploy - release



Does anyone have experiences with this and can provide some tips?

What Ive found so far:



- Job-DSL-Plugin:https://github.com/jenkinsci/job-dsl-plugin

Looks very nice for configuring jobs. Could be combined withhttps://github.com/ghale/gradle-jenkins-plugin/



- Literate plugin:https://github.com/jenkinsci/literate-plugin

Looks also very nice. I like especially the fact that the Build steps are defined in Markdown with additional comments allowed.

However, it doesnt seem to cover the automatically create job part. Youd still have to create the job once manually in the Jenkins GUI right?





thanks

Kutzi









-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Experiences with automatically creating/configuring Jenkins jobs from command line

2014-05-12 Thread Richard Bywater
There's also Jenkins Job Builder which also allows you to have an actual
template that can be updated to make the same change across all jobs.

One issue I'm having with any of the automated configuration options
though is the lack of support of adding Promotion Processes. Currently
there isn't really a way of adding them programatically :(  (So bear that
in mind if you use that plugin)

Richard.


On Mon, May 12, 2014 at 8:13 PM, Christoph Kutzinski ku...@gmx.de wrote:

 Hi all,

 we want to create a 'project template' to make it easier to create new
 services from scratch.
 As part of this template we want to have a single step to create a new
 Jenkins job for this service.
 For example, this should be a simple Gradle call: gradle createJenkinsJob
 which would create a new Job and configure it to some defaults -
 e.g. e-mail notification settings, Checkstyle/FindBugs/Warnings report.
 Additionally, It would be good to be able to create a build pipeline -
 e.g. compile/test - integration test - deploy - release

 Does anyone have experiences with this and can provide some tips?
 What I've found so far:

 - Job-DSL-Plugin: https://github.com/jenkinsci/job-dsl-plugin
 Looks very nice for configuring jobs. Could be combined with
 https://github.com/ghale/gradle-jenkins-plugin/

 - Literate plugin: https://github.com/jenkinsci/literate-plugin
 Looks also very nice. I like especially the fact that the Build steps are
 defined in Markdown with additional comments allowed.
 However, it doesn't seem to cover the 'automatically create job' part.
 You'd still have to create the job once manually in the Jenkins GUI right?


 thanks
 Kutzi




 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.