Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Release task should work in "detached HEAD" state #137

Closed
tschulte opened this issue Sep 30, 2015 · 1 comment
Closed

Release task should work in "detached HEAD" state #137

tschulte opened this issue Sep 30, 2015 · 1 comment
Milestone

Comments

@tschulte
Copy link
Contributor

Some CI servers do checkout branch^{commit} instead of the branch HEAD. I have seen this with Jenkins and Travis.

The release task does not support this, because it always pushes grgit.branch.current.fullName.

My workaround so far is to add git checkout $BRANCH to the CI config. This workaround does not work however, if I want to rebuild a tag using the RebuildVersionStrategy (because e.g. upload to nexus failed and it should be retriggered).

The plugin should allow building in detached HEAD state by auto-detecting if it is run in detached HEAD state.

@ajoberstar
Copy link
Owner

I don't use detached heads often. In that scenario what should the plugin do? Would it skip the push of the branch and just push the tag? (I'm assuming the push is the only piece you're running into an issue on. Let me know if that's not the case)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants