Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38608

Null value not allowed as an environment variable: GIT_URL_2

XMLWordPrintable

      RJPP_BRANCHWhen creating a build in Jenkins using GIT and Bitbucket, I get the following error

      FATAL: Null value not allowed as an environment variable: GIT_URL_2
      java.lang.IllegalArgumentException: Null value not allowed as an environment variable: GIT_URL_2
      at hudson.EnvVars.put(EnvVars.java:356)
      at hudson.EnvVars.put(EnvVars.java:74)
      at hudson.plugins.git.GitSCM.buildEnvVars(GitSCM.java:1265)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:927)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1075)
      at hudson.scm.SCM.checkout(SCM.java:495)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Finished: FAILURE

      Problem requires that a repository is added to the Freestyle job definition which has no repository URL. If the repository URL is non-empty, the problem does not occur.

      See my sample job to duplicate the problem.

            markewaite Mark Waite
            klapinski Kathleen Lapinski
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: