Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable setup wizard #38

Closed
ndeloof opened this issue Jan 22, 2018 · 9 comments
Closed

Disable setup wizard #38

ndeloof opened this issue Jan 22, 2018 · 9 comments

Comments

@ndeloof
Copy link
Contributor

ndeloof commented Jan 22, 2018

Configuration as code should fully setup Jenkins, so setup wizard should be automatically disabled.

@daniel-beck
Copy link
Member

Could we add a validation of sorts that prevents disabling the wizard without defining authn + authz?

@ndeloof
Copy link
Contributor Author

ndeloof commented Jan 22, 2018

sounds reasonable.
A quick look at SetupWizard seems to demonstrate there's no simple way to disable it programmatically anyway :-\

@daniel-beck
Copy link
Member

The system property jenkins.install.runSetupWizard is used from InstallState, but there's no field you can set for this, true.

@ndeloof
Copy link
Contributor Author

ndeloof commented Feb 5, 2018

possible workaround:
introduce a servlet filter to force UpgradeWizard#SHOW_UPGRADE_WIZARD_FLAG session attribute

@ewelinawilkosz
Copy link
Contributor

during post-FOSDEM hackathon it was decided we don't need to support case:

  • without docker
  • start from empty system
  • launch Jenkins with jenkins.yaml

in case of docker or pre-existing Jenkins instance issue is not present

it is possible though to provide a set of scripts that will take care of skipping the wizard and pre-installing the plugin, but it won't be part of this project -> closing the ticket

@deiga
Copy link

deiga commented May 21, 2019

@ewelinawilkosz AFAIK the setup wizard also needs to be circumvented when running Jenkins in Docker.
In its current state JCasC doesn't seem to actually support new Jenkins installations at all.

@jetersen
Copy link
Member

@deiga instead of poking around in old issues, I suggest you join the chat on gitter

Here is the solution you can use in docker.
Honestly, this is a docker issue, not a JCasC issue.

RUN echo $JENKINS_VERSION | tee \
    $jenkins_home/jenkins.install.UpgradeWizard.state \
    $jenkins_home/jenkins.install.InstallUtil.lastExecVersion

@ringerc
Copy link

ringerc commented Jun 6, 2019

See also #393

@ringerc
Copy link

ringerc commented Jun 6, 2019

Note that in the above you'll want JENKINS_HOME with the jenkins/jenkins Docker images, not jenkins_home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants