Comments (9)
Could we add a validation of sorts that prevents disabling the wizard without defining authn + authz?
from configuration-as-code-plugin.
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.
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.
possible workaround:
introduce a servlet filter to force UpgradeWizard#SHOW_UPGRADE_WIZARD_FLAG
session attribute
from configuration-as-code-plugin.
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.
@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.
@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.
See also #393
from configuration-as-code-plugin.
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)
- io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration: '/var/jenkins_home/casc_configs/configuration-as-code-staging' isn't a valid path.
- Bug with Theme Manager using Environment Variable
- Snake YAML Missing function HOT 5
- `$StaplerConverterImpl` is invoked with unexpected arguments
- Nicer error page on configuration error
- CasC support DateParameter plugin?
- Reload existing configuration failure HOT 10
- Not able to configure pipeline jobs using the JCasC plugin
- No configurator for the following root elements services HOT 8
- Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : queueItemAuthenticator HOT 4
- JCasC - configure a hudson.security.SecurityRealm HOT 3
- Typo / Name Change in Configuration as Code for gitscm demo HOT 6
- warning popup about master migration HOT 2
- SSH private key credential is corrupted by export + import HOT 2
- Add JUnit5 Annotation support for Test Cases
- Missing information how to generate/create yaml file HOT 1
- JCASC not able export create yaml with "list view swithin nested view" HOT 1
- Configuration As Code Plugin compatible with Scriptler HOT 1
- Jenkins Configuration Reload issue - ERROR 401 Unauthorized
- java.lang.IllegalArgumentException: No hudson.tools.ToolInstaller implementation found for jdkInstaller on Jenkins 2.440.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from configuration-as-code-plugin.