Git Product home page Git Product logo

Comments (9)

daniel-beck avatar daniel-beck commented on June 19, 2024

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

from configuration-as-code-plugin.

ndeloof avatar ndeloof commented on June 19, 2024

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

from configuration-as-code-plugin.

daniel-beck avatar daniel-beck commented on June 19, 2024

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

from configuration-as-code-plugin.

ndeloof avatar ndeloof commented on June 19, 2024

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

from configuration-as-code-plugin.

ewelinawilkosz avatar ewelinawilkosz commented on June 19, 2024

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

from configuration-as-code-plugin.

deiga avatar deiga commented on June 19, 2024

@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.

from configuration-as-code-plugin.

jetersen avatar jetersen commented on June 19, 2024

@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

from configuration-as-code-plugin.

ringerc avatar ringerc commented on June 19, 2024

See also #393

from configuration-as-code-plugin.

ringerc avatar ringerc commented on June 19, 2024

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

from configuration-as-code-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.