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

Add the ability to "Delete workspace before build starts" in a declarative pipeline

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None

      It is possible to find the declarative pipeline syntax for cleanWs in the pipeline-syntax snippet generator inside a Jenkins instance. I have however not found any instructions on how to use preBuildCleanup in a declarative pipeline. I don't even know if it is possible.

          [JENKINS-61856] Add the ability to "Delete workspace before build starts" in a declarative pipeline

          Dennis Lundberg added a comment - Pull request available at https://github.com/jenkinsci/ws-cleanup-plugin/pull/49

          Basil Crow added a comment -

          Basil Crow added a comment - Closing per dennisl 's request in jenkinsci/ws-cleanup-plugin#49 (comment) .

            Unassigned Unassigned
            dennisl Dennis Lundberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: