Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins re-run setup wizard

Tags:

Just installed latest Jenkins on Windows server.
Changed it to run as a service and my login no longer works. No problems, disable security for now.

But found out all my plug-ins are missing.
How can I have it rerun the setup wizard?

like image 856
mark1234 Avatar asked Aug 15 '17 17:08

mark1234


People also ask

How do I disable Jenkins setup wizard?

The jenkins/jenkins image allows you to enable or disable the setup wizard by passing in a system property named jenkins. install. runSetupWizard via the JAVA_OPTS environment variable. Users of the image can pass in the JAVA_OPTS environment variable at runtime using the --env flag to docker run .

How do I unlock Jenkins Windows?

Unlocking Jenkins When you first access a new Jenkins instance, you are asked to unlock it using an automatically-generated password. Browse to http://localhost:8080 (or whichever port you configured for Jenkins when installing it) and wait until the Unlock Jenkins page appears.


1 Answers

As seen in issue 310, you need on the server side to remove:

/usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
/usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion

(Search those files on your Windows Jenkins installation folder, to adapt those paths accordingly)

And you would relaunch Jenkins with -Djenkins.install.runSetupWizard=true

like image 146
VonC Avatar answered Sep 29 '22 21:09

VonC