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

Add possibility to pass in commands for workspace cleanup

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None

      We run everything with `docker-compose` in our Jobs and we have to add a `docker-compose down` to the end of each stage, which takes unnecessary time from the jobs completion.

       

      It would be great if we could add a closure to `cleanWs` in order to run some commands deferredly at the end of the build

       

      cleanWs() {
        docker-compose -f docker-compose.ci.yml down --volumes --remove-orphans
      }
      

            olivergondza Oliver Gondža
            deiga Timo Sand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: