Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Hudson doesn't checkout the master branch. Hudson uses an 'unnamed' branch therefore:
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref
Hmm - dunno how to resolve that. Perhaps the Git plugin should handle the checkout different ... But nevertheless the issue surfaces here
Attachments
Issue Links
- depends on
-
JENKINS-6856 Git builds with detached head no matter what
-
- Closed
-
This is working if I use the m2 extra steps plugin and the following config
Git
"Merge before build" origin, master
And m2 extra steps (pre-build)
git checkout master || git checkout -b master
git reset --hard origin/master