I have a build promotion process modeled after this discussion (using promoted builds plugin.) In general, it works great. However, for a few "flavors" of the promotion process (not all) I'd like to push a git tag. I implemented this with an "execute shell" step as one of the promotion actions. This has been working well, and then today failed with the error below. I suspect I landed on a build slave where the workspace wasn't already initialized for git - and that I've been getting lucky in the past (using Cloudbees - where the build slaves are dynamically allocated.)
I've tried the "git publisher", but it seems to expect that you are in a setting where the git source plugin has already done its job. Has anyone been able reliably push a tag from a build promotion step ?
+ git checkout develop
fatal: Not a git repository (or any of the parent directories): .git