Automating Jenkins Installation Steps

72 views
Skip to first unread message

Karthik Veeragoni

unread,
Dec 26, 2016, 7:38:20 AM12/26/16
to Jenkins Users
Hi guys,

I'm trying to automate jenkins installations steps
So as part of that I'm stuck at: Giving the initial Administration Key, Plugins Installation, User Account Creation
How can I automate these steps, any help?

Thanks & Regards

niristotle okram

unread,
Dec 26, 2016, 1:32:55 PM12/26/16
to jenkins...@googlegroups.com
it really depends on the tool you are using to automate it. e.g: https://supermarket.chef.io/cookbooks/jenkins  (if using chef). Unless you are coming up with your own way. Then it needs more info in your request

--
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/ecb8d32e-ddb6-4221-bc4d-7868d1d6748a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards
nirish okram

Mark Waite

unread,
Dec 26, 2016, 1:42:17 PM12/26/16
to Jenkins Users
If you're using a Docker image (my preference), then you can refer to https://github.com/MarkEWaite/docker/tree/lts-with-plugins for an example that configures a current Jenkins LTS installation with plugins installed, no user account, and no security.

If you run that docker image once, connect to that unsecured instance, configure security, create user accounts, etc., you can then copy the configuration files from that docker image to your own image.  When you build that docker image, you'll have a Jenkins image secured the way you want, with the default user accounts you want.

Mark Waite

--
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-use...@googlegroups.com.

Karthik Veeragoni

unread,
Dec 28, 2016, 6:00:43 AM12/28/16
to Jenkins Users
After installation of jenkins, when for the first time we access the Jenkins web UI, we will go through following steps:
1. Pasting Administrator Key from a secret file on to the Web UI
2. Plugins Installation {Default or Custom}
3. User Account creation

My intention is to use automate those without the user interaction by using any tool like for example: ansible,chef,puppet  etc...

Karthik Veeragoni

unread,
Dec 28, 2016, 6:02:33 AM12/28/16
to Jenkins Users
Sorry for the typos:


After installation of jenkins, when for the first time we access the Jenkins web UI, we will go through following steps:
1. Pasting Administrator Key from a secret file on to the Web UI
2. Plugins Installation {Default or Custom}
3. User Account creation

My intention is to automate the above steps without the user interaction by using any of the tools like for example: ansible,chef,puppet  etc.

Mark Waite

unread,
Dec 29, 2016, 11:08:06 AM12/29/16
to Jenkins Users
Reply all
Reply to author
Forward
0 new messages