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

Cleaning of svn workspace broken in 2.157

    Details

    • Similar Issues:

      Description

      The following error occurs in the latest Jenkins build when the pipeline script tries to clean the workspace. Reverted back to 2.156 and it works without any issue
      Checking out svn
      Environment Control into \workspace@script to read Jenkinsfile
      Cleaning local Directory .
      ERROR: Checkout failed
      jenkins.util.io.CompositeIOException: Unable to delete '\workspace@script\.'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
      at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
      at hudson.Util.deleteContentsRecursive(Util.java:244)
      at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:93)
      at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
      at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1041)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1017)
      at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:990)
      at hudson.FilePath.act(FilePath.java:1078)
      at hudson.FilePath.act(FilePath.java:1061)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:937)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:864)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      jenkins.util.io.CompositeIOException: Unable to remove directory workspace@script\.\.svn with directory contents: [workspace@script\.\.svn\entries, workspace@script\.\.svn\format, workspace@script\.\.svn\pristine, workspace@script\.\.svn\tmp, workspace@script\.\.svn\wc.db]

        Attachments

          Activity

          Hide
          davidparsson David Pärsson added a comment -

          I'm sorry to let you know that this plugin isn't under active development anymore. If you can provide a pull request that fixes this I'd be happy to review it though.

          Show
          davidparsson David Pärsson added a comment - I'm sorry to let you know that this plugin isn't under active development anymore. If you can provide a pull request that fixes this I'd be happy to review it though.
          Hide
          felipebrnd Felipe Nascimento added a comment -

          I can also indicate this happens on Ubuntu 18 with jenkins 2.157.

          David Pärsson I would disagree that it's something related with the plugin as looks like the file removal was refactored recently on 2.157.

          commit: https://github.com/jenkinsci/jenkins/commit/2e8197a2c712fad704b60e345abef5881fe215c8#diff-6b2c22336dd63b20019b8558c7e9a13f

          Could something be missing from the refactoring? 

          Show
          felipebrnd Felipe Nascimento added a comment - I can also indicate this happens on Ubuntu 18 with jenkins 2.157. David Pärsson  I would disagree that it's something related with the plugin as looks like the file removal was refactored recently on 2.157. commit: https://github.com/jenkinsci/jenkins/commit/2e8197a2c712fad704b60e345abef5881fe215c8#diff-6b2c22336dd63b20019b8558c7e9a13f Could something be missing from the refactoring? 
          Hide
          axiomenvy Nic Stevens added a comment -

          Updated to indicate the same things is happening in the latest Subversion plugin. Appears to be more than just a minor issue.  

          Show
          axiomenvy Nic Stevens added a comment - Updated to indicate the same things is happening in the latest Subversion plugin. Appears to be more than just a minor issue.  
          Hide
          iceinvein Dik Rana added a comment -

          Revert of the Util.java in JENKINS-55448 has fixed this issue. The plugin will work in 2.159

          Show
          iceinvein Dik Rana added a comment - Revert of the Util.java in JENKINS-55448 has fixed this issue. The plugin will work in 2.159

            People

            • Assignee:
              Unassigned
              Reporter:
              iceinvein Dik Rana
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: