Is helpful to run your own Jenkins instance to test your jobs and pipelines. Docker and docker-compose make this task doable in a few of steps.

My recommendation is to prepare Dockerfile that inherits from the official Jenkins docker image, and customize the packages and jenkins plugins that you want to use.

Clone and Run

  1. Clone the repository
    git clone git@github.com:waltervargas/jenkins.git
    
  2. Run
    cd jenkins
    docker-compose up
    
  3. Go to http://localhost:8080/

References

Check out the Official Jenkins Docker Image documentation for more info on how to get the most out of Jenkins in Docker.

Bugs

File all bugs/feature requests at waltervargas/jenkins GitHub repo.

Questions

If you have questions, you can ask me on this post as a disqus comment.