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

NoSuchMethodError when using with Git 3.0.0 or 3.0.1

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The fix for JENKINS-39837 requires either:

      • Git 2.6.x versions >= 2.6.2 < 3.0.0 ; or
      • Git 3.0.x versions >= 3.0.2

      Thus the minimum Git version is 2.6.2

      This can still let a user have Git 3.0.0 and not get an automatic upgrade.

      In such situations the user will see

      SEVERE: Executor threw an exception
      java.lang.NoSuchMethodError: hudson.plugins.git.GitSCM.setBrowser(Lhudson/plugins/git/browser/GitRepositoryBrowser;)V
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.build(GitHubSCMSource.java:818)
      	at jenkins.scm.api.SCMSource.build(SCMSource.java:778)
      	at jenkins.branch.MultiBranchProject.newBranch(MultiBranchProject.java:400)
      

      We should be defensive and just alert the user to the problem rather than blow up

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/68187e4fc4590e64244f3dac44b367847a84f25f
            Log:
            [FIXED JENKINS-41244] Be defensive when trying to set the browser

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java http://jenkins-ci.org/commit/github-branch-source-plugin/68187e4fc4590e64244f3dac44b367847a84f25f Log: [FIXED JENKINS-41244] Be defensive when trying to set the browser
            Hide
            stephenconnolly Stephen Connolly added a comment -

            2.0.1-beta-1 is the fix (experimental update center)

            Show
            stephenconnolly Stephen Connolly added a comment - 2.0.1-beta-1 is the fix (experimental update center)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/test/java/com/cloudbees/hudson/plugins/folder/ChildNameGeneratorTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/4cad012d4982c3fa57b9475278fd3ca672304b5e
            Log:
            JENKINS-41244 probe for NFD was incorrect

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/com/cloudbees/hudson/plugins/folder/ChildNameGeneratorTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/4cad012d4982c3fa57b9475278fd3ca672304b5e Log: JENKINS-41244 probe for NFD was incorrect
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/test/java/com/cloudbees/hudson/plugins/folder/ChildNameGeneratorTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/c419016f6a4d08898a5298a4494885b3c0221c2f
            Log:
            JENKINS-41244 One more place where the NFD vs NFC rules of the underlying FS are important

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/com/cloudbees/hudson/plugins/folder/ChildNameGeneratorTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/c419016f6a4d08898a5298a4494885b3c0221c2f Log: JENKINS-41244 One more place where the NFD vs NFC rules of the underlying FS are important

              People

              • Assignee:
                stephenconnolly Stephen Connolly
                Reporter:
                stephenconnolly Stephen Connolly
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: