Last active
October 2, 2017 16:37
-
-
Save fhuitelec/6e81faa490b0b8e9cc7e6a58db7a3a79 to your computer and use it in GitHub Desktop.
Medium article on "Replay a Jenkins build pipeline locally" - Make recipe description #medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use your docker instance to run the commands below | |
docker exec -i jenkins_jenkins_1 bash -c | |
# Run locally (in the container, Jenkins runs on 8080) Jenkins CLI | |
# on your running instance | |
java -jar /application/vendor/jenkins/jenkins-cli.jar -s http://localhost:8080 | |
# Run the command `replay-pipeline` on the cd item and master branch | |
replay-pipeline cd/master | |
# Replace the Script "Jenkinsfile" with the updated file in input | |
-s Jenkinsfile < /application/demo/repo/Jenkinsfile | |
# Same as above, use the Script "demo.Servers" and replace it with the input | |
-s demo.Servers < /application/demo/lib/src/demo/Servers.groovy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment