Create default admin user on Jenkins own user database

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Create default admin user on Jenkins own user database

Siva Bagavathy
Dear Team,

As part of automation, I need to create and invoke Jobs using Jenkins API. I have deployed jenkins container on Kubernetes cluster using helm chart. Hence I need Jenkins to have at least one admin user in its own database (Jenkins' own user database) after install. By default, its Delegate to servlet container . How to do it ? Could you help me.

Thanks

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ca3d8119-9fe4-4373-9048-671db3219d9do%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Create default admin user on Jenkins own user database

Ramanathan Muthaiah
On Monday, July 13, 2020 at 10:45:23 PM UTC+5:30, Siva Bagavathy wrote:
Dear Team,

As part of automation, I need to create and invoke Jobs using Jenkins API. I have deployed jenkins container on Kubernetes cluster using helm chart. Hence I need Jenkins to have at least one admin user in its own database (Jenkins' own user database) after install. By default, its Delegate to servlet container . How to do it ? Could you help me.

You did not mention the image used for starting the container.

If the image was built by you, then you can provision groovy (kind of startup) scripts that can be baked in to the Docker image (as part of Docker build process). 

Docs in this repo could give you some leads, https://github.com/jenkinsci/docker

/Ram

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/53732c9d-89bc-4af8-9053-f270db51f94do%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Create default admin user on Jenkins own user database

Siva Bagavathy
Hi Ram,

The jenkins image version is jenkins-master:2.176.3

I am using a helm chart for deployment. 

Thanks,
Siva




On Wednesday, July 15, 2020 at 8:04:22 PM UTC+5:30, Ramanathan Muthaiah wrote:
On Monday, July 13, 2020 at 10:45:23 PM UTC+5:30, Siva Bagavathy wrote:
Dear Team,

As part of automation, I need to create and invoke Jobs using Jenkins API. I have deployed jenkins container on Kubernetes cluster using helm chart. Hence I need Jenkins to have at least one admin user in its own database (Jenkins' own user database) after install. By default, its Delegate to servlet container . How to do it ? Could you help me.

You did not mention the image used for starting the container.

If the image was built by you, then you can provision groovy (kind of startup) scripts that can be baked in to the Docker image (as part of Docker build process). 

Docs in this repo could give you some leads, <a href="https://github.com/jenkinsci/docker" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fdocker\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHBp-Wg0Dnw5kqg8o__Bs_ANMR2mg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fdocker\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHBp-Wg0Dnw5kqg8o__Bs_ANMR2mg&#39;;return true;">https://github.com/jenkinsci/docker

/Ram

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/75987ddb-6396-43c0-9450-3cf77923c3e6o%40googlegroups.com.