Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fhuitelec/6e81faa490b0b8e9cc7e6a58db7a3a79 to your computer and use it in GitHub Desktop.
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
# 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