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

Multibranch pipeline doesn't delete old branches (they're crossed out)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      I have now crossed out branches in my multibranch pipeline (which I didn't have before).

      The scan multibranch log is showing the below - there is no OS permissions issues. I can log in with the jenkins account and delete them manually.

      Processed 4 branches
      [Thu Jan 10 09:02:01 UTC 2019] Finished branch indexing. Indexing took 2.3 sec
      Evaluating orphaned items in Service Finder Multibranch Pipeline
      Will remove feature/SFD-927-notification-for-successful-feedback
      FATAL: Failed to recompute children of Service Finder Multibranch Pipeline
      jenkins.util.io.CompositeIOException: Unable to delete '/var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
      	at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
      	at hudson.Util.deleteRecursive(Util.java:267)
      	at hudson.model.AbstractItem.performDelete(AbstractItem.java:792)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:664)
      	at hudson.model.AbstractItem.delete(AbstractItem.java:776)
      	at hudson.model.Job.delete(Job.java:677)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      jenkins.util.io.CompositeIOException: Unable to remove directory /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback with directory contents: [/var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback/builds, /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback/nextBuildNumber, /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback/name-utf8.txt, /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback/scm-revision-hash.xml, /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback/lastSuccessful, /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback/lastStable]
      	at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233)
      	at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191)
      	at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201)
      	at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:90)
      	at hudson.Util.deleteRecursive(Util.java:267)
      	at hudson.model.AbstractItem.performDelete(AbstractItem.java:792)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:664)
      	at hudson.model.AbstractItem.delete(AbstractItem.java:776)
      	at hudson.model.Job.delete(Job.java:677)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1165)
      	at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220)
      	at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191)
      	at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201)
      	at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:90)
      	at hudson.Util.deleteRecursive(Util.java:267)
      	at hudson.model.AbstractItem.performDelete(AbstractItem.java:792)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:664)
      	at hudson.model.AbstractItem.delete(AbstractItem.java:776)
      	at hudson.model.Job.delete(Job.java:677)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/jobs/Service Finder Multibranch Pipeline/branches/feature-S.11lesgupt8tv.-feedback
      	at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
      	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      	at java.nio.file.Files.deleteIfExists(Files.java:1165)
      	at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224)
      	at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191)
      	at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201)
      	at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:90)
      	at hudson.Util.deleteRecursive(Util.java:267)
      	at hudson.model.AbstractItem.performDelete(AbstractItem.java:792)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:664)
      	at hudson.model.AbstractItem.delete(AbstractItem.java:776)
      	at hudson.model.Job.delete(Job.java:677)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

        Attachments

          Issue Links

            Activity

            Hide
            ophintor David Pintor added a comment -

            My issue seems to be the same as https://issues.jenkins-ci.org/browse/JENKINS-55448

            Show
            ophintor David Pintor added a comment - My issue seems to be the same as https://issues.jenkins-ci.org/browse/JENKINS-55448

              People

              • Assignee:
                jvz Matt Sicker
                Reporter:
                ophintor David Pintor
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: