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

Wipe out Repository fails to delete workspace entities with no permissions for the Jenkins user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Ubuntu, Jenkins 1.646

      In the "Source Code Management" block, if you add an "Additional Behaviours" of "Wipe out repository & force clone", this step fails if the Jenkins user has no permission to delete some objects in the workspace tree.

      This situation occurs in my specific situation because dirt left by a prior Docker build is owned by the wrong user. It should instead be deleting the tree using sudo or similar.

      A workaround can sometimes be performed, by adding a script step in the previous build to clean out the workspace correctly. This will obviously not work if the previous build fails to get as far as that step.

            Unassigned Unassigned
            jmellor John Mellor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: