akhil krishna
akhil krishna

Reputation: 326

Migrate jenkins users from old server to new

We have a Jenkins server installed on the windows server, but planning to move Jenkins to ubuntu server. How can I migrate users to old Jenkins server to new server? Tried with copying config.xml, secrets, users folder to the new server, but not able to log in.

Upvotes: 1

Views: 4645

Answers (1)

K. B.
K. B.

Reputation: 3690

You should copy also the plugins or at least the plugin that you use for authentication purposes (matrix based, LDAP). I have migrated data between Jenkins servers using thinBackup plugin. You should be able to login using the initial Jenkins password.

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

I have written a guide on the Jenkins setup in Ubuntu, it could help you.

Upvotes: 1

Related Questions