java.lang.IllegalArgumentException: Null value not allowed as an environment variable: GIT_BRANCH

Jenkins JIRA | Ron K | 5 years ago
  1. 0

    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.

    Jenkins JIRA | 5 years ago | Ron K
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: GIT_BRANCH
  2. 0

    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.

    Jenkins JIRA | 5 years ago | Ron K
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: GIT_BRANCH
  3. 0

    Jenkins complains of null M2_HOME

    Stack Overflow | 5 years ago | bmargulies
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: M2_HOME
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-21279] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING
  6. 0

    [JENKINS-21279] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING - Jenkins JIRA

    jenkins-ci.org | 3 weeks ago
    java.lang.IllegalArgumentException: Null value not allowed as an environment variable: POM_PACKAGING

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Null value not allowed as an environment variable: GIT_BRANCH

      at hudson.EnvVars.put()
    2. Hudson
      EnvVars.put
      1. hudson.EnvVars.put(EnvVars.java:162)
      1 frame
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
      1 frame
    4. Hudson
      Run.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465)
      4. hudson.model.Run.run(Run.java:1409)
      4 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames