buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

Buildkite Windows Agent post-checkout repository hook #478

Closed malcolm-boden closed 5 years ago

malcolm-boden commented 5 years ago

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

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.