Bootstrap Jenkins job creation

22 views
Skip to first unread message

Jes Struck

unread,
Dec 12, 2017, 8:13:45 AM12/12/17
to jenkins...@googlegroups.com
Hi all,


I'm looking for a good solution to do job configuration during Jenkins startup, I have looked around for a good solution, but I can't seem to find one.
From what i found my current options is hacking in groovy or using Jenkins Job Build (JJB), but what I'm expecting, is a Jenkins function that had implemented the JJB functionality.

So my question to you guys is, have anybody seen such a solution, or could guide me in the direction, that looked like this?
Secondary, if nobody can guide me, does this not seem like a new plugin?

Kind regards 
Jes Struck
Senior DevOps Consultant

Stephen Connolly

unread,
Dec 12, 2017, 8:54:58 AM12/12/17
to jenkins...@googlegroups.com
I (being biased) would think a better approach is to use the organization folder approach of pipeline multibranch.

If you want to see how this works, I did a video series on enabling this for the Apache Maven project... end result:


Every git repo has a standard build, but can opt out and get a custom one if necessary.

Jobs are created and removed as the git repos are created and removed (in this case the job creation is under 100ms after the git push enabling the job)


The other episodes concentrate on writing the plugin to integrate with the Apache specific git hosting solution.

You can find out more in the retrospective: 

And I give an overview of the original plan in episode 1: https://www.cloudbees.com/blog/watch-me-code-episode-1

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACfmdz2YXFGkwuU00EScsiGZ7Pm2QNkXuEQkG%2BozoxbBQREJqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mandy Hubbard

unread,
Dec 12, 2017, 9:56:25 AM12/12/17
to Jenkins Users
 I am also biased.  :). Here is a link to a talk I gave at Jenkins World that bootstraps using ContainerPilot and the organization folder approach.  Let me know if you have questions and I'd be happy to help. 

bit.ly/2hfWQHiDevMandy

Reply all
Reply to author
Forward
0 new messages