Jenkins-Tryout configuration-as-code plugin in a Docker-Container based environment.
This is a special plugin configuration-as-code
start with
prepareSetup.sh
to set your jenkins-version
after that just do a
docker-compose up --build
and be patient, this will take a while.
Your Jenkins is avialabe at http://localhost:8080 with User: admin Passwort:secret
The file
./jenkins-as-code/jenkinsconfig.yml
is mapped into the docker-container (/etc/jenkins-as-code/jenkinsconfig.yml)
Use your favorite editor to change the yml-based configuration and just do a reload in jenkins.
to switch between different versions of Jenkins (to evaluate the casc-plugin) do the following
# switch to jenkins 2.89.2
docker-compose down
docker volume prune
./prepareSetup.sh
# enter 2.89.2
docker-compose up --build
Use preLoadPlugins.sh and edit the created Dockerfile, see comments inside