Ron K created JENKINS-12921:
-------------------------------

             Summary: Trigger fails to build with "ull value not allowed as an 
environment variable: GIT_BRANCH" error
                 Key: JENKINS-12921
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12921
             Project: Jenkins
          Issue Type: Bug
          Components: gerrit-trigger
    Affects Versions: current
         Environment: Ubuntu server, Jenkins 1.451, Gerrit Trigger 2.4.0, Git 
Plugin 1.1.15
            Reporter: Ron K
            Assignee: rsandell


When a build is started by the Gerrit Trigger, it always fails with the error 
and
stack track pasted below:

Manually triggered by user admin for Gerrit: http://localhost:8080/79
Building in workspace /mntf/jenkins/jobs/GerritBuilder/workspace
Checkout:workspace / /mntf/jenkins/jobs/GerritBuilder/workspace - 
hudson.remoting.LocalChannel@72cbb9
Using strategy: Gerrit Trigger
Checkout:workspace / /mntf/jenkins/jobs/GerritBuilder/workspace - 
hudson.remoting.LocalChannel@72cbb9
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://jenkins@localhost:29418/myrepo.git
Commencing build of Revision 4514e900f88eb22c7c006aa8b8971f55e08b0324 ()
FATAL: Null value not allowed as an environment variable: GIT_BRANCH
java.lang.IllegalArgumentException: Null value not allowed as an environment 
variable: GIT_BRANCH
        at hudson.EnvVars.put(EnvVars.java:162)
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
        at 
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465)
        at hudson.model.Run.run(Run.java:1409)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:238)


The configuration of the trigger is along the lines given in Alex Blewitt's 
article (http://www.infoq.com/articles/Gerrit-jenkins-hudson).  Specifically, 
the project and branch are configure as:

Path - ** - Path - **

Searching the forums, mailing lists, and irc logs did not yield a solution, so 
we're assuming it's a bug and not
a config issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to