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

Tagging build to an existing tag causes SVN error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      When trying to tag a build to an existing tag I get this error:

      Tagging http://PROJECT/trunk (rev.7) to http://PROJECT/tags/uat

      Failed to tag
      org.tmatesoft.svn.core.SVNException: svn: Path 'tags/uat' already exists
      at
      org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55)
      at
      org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:40)
      at org.tmatesoft.svn.core.wc.SVNCopyClient.doCopy(SVNCopyClient.java:312)
      at
      hudson.scm.SubversionTagAction$TagWorkerThread.perform(SubversionTagAction.java:167)
      at hudson.model.TaskThread.run(TaskThread.java:77)
      Completed

      I would expect behaviour similar to the svn-tag plugin instead, where if the tag
      already exists it is over-written (perhaps with a warning/confirmation first).

        Attachments

          Activity

          Hide
          evernat evernat added a comment -

          I personnaly think that the default behavior should not be to overwrite an existing svn tag and that it is right to give an error. Because overwriting a svn tag does not seem a good practice.

          Given the low vote count after more than 3 years, this issue is closed as not a defect. You can reopen it if you feel different.

          Anyway the svn-tag plugin seems to be an alternative for your use case.

          Show
          evernat evernat added a comment - I personnaly think that the default behavior should not be to overwrite an existing svn tag and that it is right to give an error. Because overwriting a svn tag does not seem a good practice. Given the low vote count after more than 3 years, this issue is closed as not a defect. You can reopen it if you feel different. Anyway the svn-tag plugin seems to be an alternative for your use case.

            People

            • Assignee:
              Unassigned
              Reporter:
              smason smason
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: