When I create a post-checkout repository hook at .buildkite\hooks\post-checkout.bat with the contents
git checkout "%BUILDKITE_BRANCH%"
I get an error:
However when I make this a pipeline step there is no error status generated:
label: 'Apply Versioning, Restore Nuget :package:s, build :hammer: and run 'command:- git checkout "%BUILDKITE_BRANCH%"
As a side note the only reason I am executing the above is because GitVersion does not run on what it deems a "Detached Head" and is unable to make its versioning calc with the "bootstrap" git fetch etc commands. I'm open to changing anything to make the underlying issue work. I haven't been able to find a Buildkite integration for GitVersion among their supported CI.
When I create a post-checkout repository hook at .buildkite\hooks\post-checkout.bat with the contents
git checkout "%BUILDKITE_BRANCH%"
I get an error:![image](https://user-images.githubusercontent.com/42210708/47661504-18589700-db91-11e8-9dbf-0c43893e6779.png)
However when I make this a pipeline step there is no error status generated:
label: 'Apply Versioning, Restore Nuget :package:s, build :hammer: and run '
command:
- git checkout "%BUILDKITE_BRANCH%"
As a side note the only reason I am executing the above is because GitVersion does not run on what it deems a "Detached Head" and is unable to make its versioning calc with the "bootstrap" git fetch etc commands. I'm open to changing anything to make the underlying issue work. I haven't been able to find a Buildkite integration for GitVersion among their supported CI.
Thanks for any help.