I'm trying to create my own Jenkins image that skips the wizard and sets the admin password via an environment variable.
I tried setting the state to disable it (taken from the Mesosphere Jenkins service) but that didn't work:
# disable first-run wizard
RUN echo 2.0 > ${JENKINS_STAGING}/jenkins.install.UpgradeWizard.state
How can I skip the wizard and set the admin password via a variable instead of the password being auto-generated?