lakruzz / gh-phlow

This repository is a template for our default Github issues developer workflow in Praqma
3 stars 2 forks source link

Create alias to re-apply branch #9

Closed lakruzz closed 7 years ago

lakruzz commented 8 years ago

When the trigger doesn't run on a ready/* branch; could be because the Jenkins server is down or if the branch needs to be re-delivered there is still a manual process that needs to be done to trigger it again.

This should be implemented in an alias (maybe deliver-again)


Say that you have dangling ready branches like this:

If you still have them locally, they are renamed to delivered/**

Then - to force Jenkins ro rerun - I usually do like this:

git branch --move delivered/421-Remove-unnecessary-quote 421-Remove-unnecessary-quote
git push origin :ready/421-Remove-unnecessary-quote
git co 421-Remove-unnecessary-quote
git deliver

If they aren't available locally any longer, you can grab them from origin:

git fetch
git co origin/ready/421-Remove-unnecessary-quote
git co 421-Remove-unnecessary-quote origin/ready/421-Remove-unnecessary-quote
git push origin :ready/421-Remove-unnecessary-quote
git deliver
lakruzz commented 7 years ago

closed with the commit in #40