cannot delete workspace using DSL factory pipelineJob

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: ws-cleanup-plugin
    • None
    • Environment:
      jenkins version : 2.7

      I'm currently using a "pipelineJob - dsl factory" to create my pipeline by following this jenkinsci git hub page : https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.DslFactory.pipelineJob

       but I don't see any option here to delete the workspace (i.e wsCleanup) after the build has been finished.

       

      here is my pipeline configuration using DSL script : 

      // code placeholder
      pipelineJob.with {
         definition {
            cpsScm {
               lightweight(true)
               scm {
                  git {
                     remote {
                        url(repositoryUrl)
                     }
                     branch(buildBranch.path)
                  }
               }
               scriptPath(jenkinsFile)
            }
            logRotator {
               numToKeep(10)
               daysToKeep(10)
            }
         }
      }
      

            Assignee:
            Unassigned
            Reporter:
            anis qazi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: