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

cannot delete workspace using DSL factory pipelineJob

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None
    • 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)
            }
         }
      }
      

            olivergondza Oliver Gondža
            aniskazi anis qazi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: