This is similar to the customized docker image that we build for Jenkins. We just leave the $JENKINS_HOME/jobs folder intentionally inside the container. so that all job configurations are part of the docker image. A Jenkins instance started from such an image has all its jobs available out-of-the-box.
There is in fact no option to tell Jenkins to use a different jobs folder other then $JENKINS_HOME/jobs. As a workaround you could replace the $JENKINS_HOME/jobs folder by a link to e.g. /var/jenkins/jobs and let docker map a volume to /var/jenkins. [email protected] schrieb am Freitag, 9. April 2021 um 17:44:56 UTC+2: > Hello, > > I am building a custom docker image from jenkins/jenkins. I would like to > have the jobs, builds, and workspace folder be on an external volumne from > from the container, but keep the rest of the configuration inside the > container. > > I have found where it is possible to set flags for builds and workspace, > however, cannot find anything to externalize jobs folder. Is this possible? > > Thanks > Bruce > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c631227a-b5e1-4161-bfe8-52e1b2934f29n%40googlegroups.com.
