Skip to content

Springjunky/jenkins-casc

Repository files navigation

jenkins-casc

Jenkins-Tryout configuration-as-code plugin in a Docker-Container based environment.

What is configuration-as-code ?

This is a special plugin configuration-as-code

Run Locally

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

Test the configruation-as-code functionality

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.

Switch between diffferent versions of 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

Cache your plugins

Use preLoadPlugins.sh and edit the created Dockerfile, see comments inside

Releases

No releases published

Packages

No packages published

Languages