Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fhuitelec/1fc4d29c8fd4e3c41a60269b9bfc04b1 to your computer and use it in GitHub Desktop.
Save fhuitelec/1fc4d29c8fd4e3c41a60269b9bfc04b1 to your computer and use it in GitHub Desktop.
Medium article on "Replay a Jenkins build pipeline locally" - Infernal routine #medium
# Just edited Jenkinsfile dealing with some deploy when merging on master
git add Jenkinsfile lib/jenkins/Servers.groovy # git add
git commit -m "WIP build pipeline" # git commit
git push origin master --force # previously rebased 50 "WIP build pipeline" in git history
# push force on master, yolo
# Wait for the build to be triggered
# ⌘ + Tab
# 3 clicks on Jenkins to get the build output
# Build failed, there's a freaking typo in on the sh() I added
# And so on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment