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

Delete Workspace Before Build with pattern fails when no workspace exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • ws-cleanup-plugin
    • None
    • Win7

      Create a job with "Delete workspace before build" and some pattern for the files to delete (mine is the MSBuild output directory, for example).

      The job will fail on the first build (and all subsequent ones) as the Workspace cannot be found.

      This is likely to happen when copying or renaming Jenkins jobs that have a "delete workspace" pattern.

      A workaround is to turn off "Delete workspace before build" until after the first build has run and the workspace has been created.

            Unassigned Unassigned
            cjbrew chris yate
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: