On Sun, Apr 2, 2017 at 3:23 PM Fritz Elfert <fr...@fritz-elfert.de> wrote:

> On 02.04.2017 22:35, Mark Waite wrote:
> > That message usually means that the repository in the workspace does not
> > contain a reference named "master" or named "origin/master".  That is a
> > surprise, since most repositories include a master branch.
>
> If the git plugin has this requirement, then this assumption is a bug.
> There is no obligation at all to have a branch called "master". In fact,
> at my employer, the default branch is called "devel" instead.
>
>
The git plugin does not have any requirement that there be a branch named
master.

It would have been clearer if I had said that Simba's job definition is
referring to a branch named master, or a reference named origin/master, but
for some reason that reference is not available in that repository.

The reference could be unavailable in the repository because the working
repository was damaged.  It could be unavailable because the refspec used
to clone the repository did not include the master branch (though the
refspec which is logged in the "fetch" statement indicates that is not the
case).  It could be unavailable because the job definition used the
advanced setting to rename "origin" to something else.  There are likely
several more possibilities for why the reference "origin/master^{commit}"
cannot be resolved.

The absence of a branch named master is not a problem for the Jenkins git
plugin as far as I know.

Thanks,
Mark Waite


> Cheers
>  -Fritz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/54b75da7-4c92-e208-4ab7-1e1ac2a4d421%40fritz-elfert.de
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEo9QrW8_dSN5B5D1oike%2Bi-2FGWxj%3D80zG5WV%2BXQCcbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to