>>Setting the branch config to origin/master or origin/$GERRIT_BRANCH usually helps. Well, I've tried to put every possible thing in that field... looks like it's just nulled somewhere, or not passing to the git plugin at all. Thank for the tip, I'll try too take a look at the code.
On Thursday, August 15, 2013 6:00:39 PM UTC+7, Robert Sandell wrote: > > The Gerrit trigger build chooser has nothing specific to handle multiple > repositories. It just tells the git plugin to checkout FETCH_HEAD which > usually is the refspec specified in the config. > > This probably confuses the git plugin a bit as it tries to insert null > into the GIT_BRANCH env var if you haven’t specified a branch in the > config. Setting the branch config to origin/master or origin/$GERRIT_BRANCH > usually helps. > > The build chooser implementation is here > https://github.com/jenkinsci/gerrit-trigger-plugin/blob/master/gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerBuildChooser.java > > > > * * > > *Robert Sandell* > > Software Tools Engineer - SW Environment and Product Configuration > > Sony Mobile Communications > > > > *From:* [email protected] <javascript:> [mailto: > [email protected] <javascript:>] *On Behalf Of *Sapone > *Sent:* den 15 augusti 2013 06:07 > *To:* [email protected] <javascript:> > *Subject:* Gerrit-trigger with multiple Git-repos > > > > Did anyone have a real working system with gerrit-trigger and multiple git > repos(two at least)? > I can't make this work: I can successfully use one repo with > "Gerrit-trigger choosing strategy", or I can successfully use two repos > with "Default choosing strategy", but when I'm trying to use two repos with > "Gerrit-trigger choosing strategy", I got the "FATAL: Null value not > allowed as an environment variable: GIT_BRANCH" error. Tried every possible > workarounds - nothing changes. > > I'm trying to start code investigation, but it is not so obvious for me > right now... Any suggestions, how and where choosing strategy can affect > branches? > > Here the bug in JIRA: > https://issues.jenkins-ci.org/browse/JENKINS-12921?focusedCommentId=183149 > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
