Spawns a local Jenkins instance that can be used to test Jenkins pipelines with Dockerfiles
- Only first time
sh setup.sh
- Each time
sh run.sh /path/to/my/project
-
The
/path/to/my/project
parameter creates a bind mount from the host project path to the/src
directory in the guest Jenkins container. This is to make accessible the project code locally rather than have to push-and-pull it from a remote repo. -
The Jenkins instance already comes with the required plugins. Do not install any further plugins
-
(Recommendation) create a Jenkins user and do not use the default admin user
To configure this plugin you will need a token (called "crumb") generated by the Jenkins instance. You can generate such token with the link at crumbIssuer.url