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

Latest version throws IllegalArgumentException: Git repository URL 2 is an empty string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-plugin
    • Jenkins 2.204.2
      git plugin 4.2.2
      RedHat 7
      Java 8

      After upgrading the Git plugin version 4.1.1 to the latest version 4.2.2, following exception is being thrown during a clone:

      java.lang.IllegalArgumentException: Git repository URL 2 is an empty string in job definition. Checkout requires a valid repository URL

      In earlier versions below git configuration was working fine:

      checkout(scm: [$class: 'GitSCM', userRemoteConfigs: [[url: "${gitURL}"], [name: "origin"]], branches: [[name: "${gitTag}"]]])

      Above snippet is taken from a Jenkins Shared Library groovy script.
      Rolling back to git version 4.1.1 works fine. Let me know if you need more information.

            markewaite Mark Waite
            luc_neulens luc neulens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: