It seems that I have stumbled upon a known bug: the Git Parameters plugin does not work for private repositories because it ignores the SSH credentials in the Jenkins setup: https://issues.jenkins-ci.org/browse/JENKINS-23396
I made a workaround with the Extensible Choice Parameter plugin <https://wiki.jenkins-ci.org/display/JENKINS/Extensible+Choice+Parameter+plugin> : http://stackoverflow.com/a/28565446/766786 It's a kludge, but it works for me. PS: I want to subscribe to bug JENKINS-23396, but I can't register due to spam. Halp? On Monday, February 16, 2015 at 1:01:36 PM UTC+1, Amedee Van Gasse wrote: > > Jenkins version: 1.593 > Git Parameter Plug-In > <http://wiki.jenkins-ci.org/display/JENKINS/Git+Parameter+Plugin>: 0.4.0 > GIT client plugin > <http://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin>: 1.16.1 > > > I have a parameterized build. > My parameter is Git Parameter. > > Name: TAG_TO_BUILD > Description: > Parameter type: Branch or tag > Branch filter: * > Tag filter: * > Tag sort mode: DESCENDING_SMART > Default value: master > > Source code management: > Branches to build: origin/${TAG_TO_BUILD} > > > When I Build with parameters, I always get "Retrieving Git references...": > > This build requires parameters: > TAG_TO_BUILD > Retrieving Git references… > You must have built the project at least once, to get entries in the list > above. > If you wipe out your workspace, the plugin needs to clone the repository > before it can list the tags/revisions. This may take some time if you have > a slow connection or the repository is big. > > I always get this, the box is never filled with branches or tags, even > after I built the project without specifying a parameter (it was > successfully built with branch master). > > Is there something else that I am missing here? > > -- > Amedee > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f21d4708-0ea4-4302-852f-4668b9fcad92%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
