-
Bug
-
Resolution: Duplicate
-
Major
-
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.
- is related to
-
JENKINS-59540 Using refspec without url causes checkout to fail
- Closed