test-jenkins-pipeline
This project template was develop to test the Jenkins Blue Ocean with Docker. How the pipeline syntax looks like and how you can interact with Jenkins with the Jenkinsfile and the Dockerfile.
Before you start, you need some requirements:
You can pull the jenkinsci/blueocean docker image to start Jenkins with the Blue Ocean plugin already installed.
You can use this docker run command to start Jenkins.
$ docker run \
--rm \
-u root \
-p 8080:8080 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$HOME":/home \
jenkinsci/blueocean
With this command, Jenkins will have access to the dockerd service to interact with it.
If you are not familiar with this, please go to Jenkins Installation procedures.
Once Jenkins is launched, navigate to http://localhost:8080/blue to enter in the Blue Ocean Project.