Add possibility to pass in commands for workspace cleanup

XMLWordPrintable

    • Type: New Feature
    • Resolution: Not A Defect
    • Priority: Minor
    • Component/s: 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
      }
      

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

              Created:
              Updated:
              Resolved: