-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
git-client 3.0.0 beta 5
git 4.0.0 beta 3
I integrated warnings plugin 5.0.0 beta with Git-Client plugin 3.0.0 beta.
I get the following exception:
java.lang.NoSuchMethodError: org.eclipse.jgit.lib.Repository.getRef(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref; at jenkins.plugins.git.GitSCMFileSystem.lambda$new$0(GitSCMFileSystem.java:114) at jenkins.plugins.git.GitSCMFileSystem.lambda$invoke$e8567d7e$1(GitSCMFileSystem.java:181) at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:28) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:75) at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:181) at jenkins.plugins.git.GitSCMFileSystem.<init>(GitSCMFileSystem.java:114) at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:339) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:196) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:172) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE
The declarative pipeline used:
pipeline { agent 'any' tools { maven 'mvn-default' jdk 'jdk-default' } stages { stage ('Build') { steps { sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e clean verify -Dsurefire.useFile=false -Dmaven.test.failure.ignore' } } stage ('Analysis') { steps { sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e checkstyle:checkstyle pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs' } } } post { always { junit testResults: '**/target/surefire-reports/TEST-*.xml' recordIssues enabledForFailure: true, tools: [[pattern: '', tool: [$class: 'MavenConsole']], [pattern: '', tool: [$class: 'Java']], [pattern: '', tool: [$class: 'JavaDoc']]] recordIssues enabledForFailure: true, tools: [[pattern: '', tool: [$class: 'CheckStyle']]] recordIssues enabledForFailure: true, tools: [[pattern: '', tool: [$class: 'FindBugs']]] recordIssues enabledForFailure: true, tools: [[pattern: '', tool: [$class: 'SpotBugs']]] recordIssues enabledForFailure: true, tools: [[pattern: '**/target/cpd.xml', tool: [$class: 'Cpd']]] recordIssues enabledForFailure: true, tools: [[pattern: '**/target/pmd.xml', tool: [$class: 'Pmd']]] } } }