-
Notifications
You must be signed in to change notification settings - Fork 725
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
authorizationStrategy: unsecured still wants me to create an admin user #773
Comments
After creating an admin user, I did a configuration export, and based on that I changed my config to:
This kind-of-sort-of worked insofar as it didn't require me to create an admin user when I navigated to Jenkins; however, instead I was presented with the setup wizard. Exiting the setup wizard (with ❌) instead of selecting plugins got me:
This manages to be marginally more annoying than having to create a user, leading me to revert to the previous configuration. |
(For clarity, my goal here is
|
To skip setup wizard, add this to your dockerfile.
Read the initial exception you posted again, it clearly tells you the solution. |
I suggest your read the readme located here for some of the docker tips: https://github.com/jenkinsci/docker |
Ah, I misread It would be helpful if the purpose of the
I take it this is meant to mean,
but I understood it to mean
I'm not sure which link is meant by "(see link)", but the Configuration As Code Support plugin page doesn't give any information as to why one might or might not want it. That said, adding The
to the Dockerfile and removing the |
The advice from @Casz here on skipping the setup wizard may be outdated/incomplete. In any case, it didn't do any good for me using the dockerhub |
@ringerc again not a JCasC issue this will do the trick too inside docker. ENV JAVA_OPTS="jenkins.install.runSetupWizard=false ${JAVA_OPTS}" |
I'm running a throwaway instance of Jenkins in a Docker container on a machine that's only accessible to people who in principle would all have admin privileges anyway.
I've tried copying the configuration from
UnsecuredAuthorizationStrategyConfiguratorTest.yml
, but when I navigate to Jenkins the first thing I get is a prompt to create an admin user. Fulljenkins.yaml
:I tried
but that just got me
What am I missing?
System information
jenkins/jenkins:lts
Docker image)The text was updated successfully, but these errors were encountered: