Details
-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Component/s: configuration-as-code-plugin, git-plugin
-
Labels:None
-
Similar Issues:
Description
I'm unable to update git-plugin to >=4.5.0, when Jenkins starts up it throws java.lang
.IllegalArgumentException: No jenkins.scm.api.SCMSource implementation found for git (see the full attached stacktrace). I'm using JCasC, though I'm not sure if it's relevant in this context. I've also attached the plugins.yaml; the only relevant part of the jenkins.yaml file pertaining to the git plugin is as such:
gitSCM:
createAccountBasedOnEmail: false
showEntireCommitSummaryInChanges: false
useExistingAccountWithSameEmail: false
I'm not sure why this is occurring, does anyone have an idea?
That's a very strange error message, since the git plugin has an implementation of jenkins.scm.api.SCMSource in GitSCMSource.java that extends AbstractGitSCMSource that extends jenkins.scm.api.SCMSource.
I have those same configuration lines in my jenkins.yaml file and am loading git plugin 4.5.2 without any issue on both Java 8 and Java 11.
I updated my jenkins.yaml to only include those lines and confirmed that it still starts and runs with git plugin 4.5.2. You are welcome to compare the plugin versions I'm running in that Docker image definition with the plugin versions you're using.
Nik Reiman can you duplicate the problem on other computers with the same definition? Are you willing to share the complete jenkins.yaml file (with sensitive information removed)?