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

Subversion Plugin - SvnTagPublisher aborted java.lang.NoSuchMethodError

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: svn-tag-plugin
    • Labels:
    • Environment:
      Jenkins 1.598
      Subversion Plugin 2.5
      Jenkins Subversion Workspace 1.8
      SonarQube 5.0
      Subversion 1.6
    • Similar Issues:

      Description

      Hi

      My current Subversion workspace is set to 1.7 but when I attempt to call a Sonar analysis job I get...

      E155036: Please see the 'svn upgrade' command
      svn: E155036: The working copy at 'E:\Jenkins\jobs\AlertEZ - Processor - Analyze\workspace'
      is too old (format 29) to work with client version '1.8.9 (r1591380)' (expects format 31). You need to upgrade the working copy first.

      So to resolve this, I upgraded my Subversion plugin to 2.5 and set my Jenkins Subversion workspace to 1.8.

      This worked a treat but now I am faced with the problem that I can no longer tag using Jenkins. When I attempt to tag a Subversion repository, Jenkins displays the following error...

      ERROR: Publisher hudson.plugins.svn_tag.SvnTagPublisher aborted due to exception
      java.lang.NoSuchMethodError: hudson.scm.SubversionSCM.getRevisionFile(Lhudson/model/AbstractBuild;)Ljava/io/File;
      at hudson.plugins.svn_tag.SvnTagPlugin.parseRevisionFile(SvnTagPlugin.java:242)
      at hudson.plugins.svn_tag.SvnTagPlugin.perform(SvnTagPlugin.java:97)
      at hudson.plugins.svn_tag.SvnTagPublisher.perform(SvnTagPublisher.java:79)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
      at hudson.model.Run.execute(Run.java:1764)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      I did try changing my workspace back to version 1.7 but that still displayed the error when tagging the code.

      Note, my Subversion server is on 1.6 but I do not see this as an issue as my 1.8 Tortoise SVN client is backwards compatible with the 1.6 server so I would assume another tool (Subversion plugin in this case) would have no issue either.

      A rollback to version 2.4.5 of the Subversion Plugin resolved the issue but as that version does not support a 1.8 workspace, the Sonar Jenkins job then fails.

      It may be of help if I point out what looks like a similar issue the Subversion Tag plugin has temporarily patched until the Subversion Plugin issue is resolved...
      https://issues.jenkins-ci.org/browse/JENKINS-26217
      I am not using the Subversion Tag plugin so this is of no help to me at present.

      Thanks

        Attachments

          Issue Links

            Activity

            Hide
            recena Manuel Recena Soto added a comment -

            Jonathan Graham Are you working on this bug? I saw you have this issue assigned.

            Show
            recena Manuel Recena Soto added a comment - Jonathan Graham Are you working on this bug? I saw you have this issue assigned.
            Hide
            recena Manuel Recena Soto added a comment - - edited

            A PR has been sent.

            Show
            recena Manuel Recena Soto added a comment - - edited A PR has been sent.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: recena
            Path:
            pom.xml
            src/main/java/hudson/plugins/svn_tag/SvnTagPlugin.java
            http://jenkins-ci.org/commit/svn-tag-plugin/bcb4e441634ecbdc829dc5650a289ebe6f238025
            Log:
            JENKINS-26611 SvnTagPublisher aborted java.lang.NoSuchMethodError

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: pom.xml src/main/java/hudson/plugins/svn_tag/SvnTagPlugin.java http://jenkins-ci.org/commit/svn-tag-plugin/bcb4e441634ecbdc829dc5650a289ebe6f238025 Log: JENKINS-26611 SvnTagPublisher aborted java.lang.NoSuchMethodError
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Manuel Recena
            Path:
            pom.xml
            src/main/java/hudson/plugins/svn_tag/SvnTagPlugin.java
            http://jenkins-ci.org/commit/svn-tag-plugin/65c99c5bc946f93dbb56f99801ac902c7abc002b
            Log:
            Merge pull request #11 from recena/master

            JENKINS-26611 SvnTagPublisher aborted java.lang.NoSuchMethodError

            Compare: https://github.com/jenkinsci/svn-tag-plugin/compare/81e0eea4dd13...65c99c5bc946

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: pom.xml src/main/java/hudson/plugins/svn_tag/SvnTagPlugin.java http://jenkins-ci.org/commit/svn-tag-plugin/65c99c5bc946f93dbb56f99801ac902c7abc002b Log: Merge pull request #11 from recena/master JENKINS-26611 SvnTagPublisher aborted java.lang.NoSuchMethodError Compare: https://github.com/jenkinsci/svn-tag-plugin/compare/81e0eea4dd13...65c99c5bc946
            Hide
            recena Manuel Recena Soto added a comment -

            A new version of Subversion Tagging Plugin has been release.

            Show
            recena Manuel Recena Soto added a comment - A new version of Subversion Tagging Plugin has been release.

              People

              • Assignee:
                recena Manuel Recena Soto
                Reporter:
                jonathangrm Jonathan Graham
              • Votes:
                8 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: