yes, leaving it blank and letting it default to ** works just fine for 
snapshot builds. Then when I attempt to do a release build it complains of 
a detached head. I suppose I can add pre-steps to the build to do the 
correct git commands to make this work, but didn't think I'd need to do 
that. We're switching from perforce to git, and I assumed the build steps 
would be similar... perhaps not.. 
Don
 

*07:55:26*  Caused by: org.apache.maven.scm.ScmException: Detecting the current 
branch failed: fatal: ref HEAD is not a symbolic ref

*07:55:26*  

*07:55:26*      at 
org.apache.maven.scm.provider.git.gitexe.command.branch.GitBranchCommand.getCurrentBranch(GitBranchCommand.java:144)

*07:55:26*      at 
org.apache.maven.scm.provider.git.gitexe.command.checkin.GitCheckInCommand.createPushCommandLine(GitCheckInCommand.java:185)

*07:55:26*      at 
org.apache.maven.scm.provider.git.gitexe.command.checkin.GitCheckInCommand.executeCheckInCommand(GitCheckInCommand.java:125)

*07:55:26*      at 
org.apache.maven.scm.command.checkin.AbstractCheckInCommand.executeCommand(AbstractCheckInCommand.java:53)

*07:55:26*      at 
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)

*07:55:26*      ... 39 more


 

On Monday, April 23, 2012 11:27:29 PM UTC-7, sebasti...@softwareag.com 
wrote:

> > -----Original Message----- 
> > From: jenkinsci-users@googlegroups.com [mailto:jenkinsci- 
> > us...@googlegroups.com] On Behalf Of dwalling 
> > Sent: Dienstag, 24. April 2012 01:45 
> > To: jenkinsci-users@googlegroups.com 
> > Subject: Re: how to build a specific git branch with jenkins 
> > 
> > Jenkins console output is below (except that I've replaced actual host 
> > names with dummy values. The error appears whether I use origin/master 
> > or just master in the branch specifier field (instead of the **) 
>
> Does it work if you don't specify a branch and keep **? 
>
> Sebastian 
>
> Software AG – Group Executive Board: Karl-Heinz Streibich 
> (Vorsitzender/Chairman), Arnd Zinnhardt, Mark Edwards, Dr. Wolfram Jost, 
> Kamyar Niroumand, Paul Orme-Smith, Darren Roos, Ivo Totev 
>
> Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany – 
> Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/ 
> Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Dr. Wolfram 
> Jost, Arnd Zinnhardt; - Aufsichtsratsvorsitzender/ Chairman of the 
> Supervisory Board: Dr. Andreas Bereczky - http://www.softwareag.com 
>
>

Reply via email to