Add support for the integration for Jenkins Workflow DSL. Having the means to clean workspaces utilizing the workflow plugin is missing currently and users must resort to scripting this capability, which has it limitations since Antbuilder is not whitelisted as a for groovy CPS libraries. Being able to delete workspaces from the workflow DSL based on patterns would be very useful.

          [JENKINS-28454] Workspace Cleanup integration with Workflow

          Oleg Nenashev added a comment -

          AFAIK alexsomai has a kind of prototype for it

          Oleg Nenashev added a comment - AFAIK alexsomai has a kind of prototype for it

          Yes, I do have a working(ish) version. I'll create a PR in a few hours. Should I assign the task to myself?

          Alexandru Somai added a comment - Yes, I do have a working(ish) version. I'll create a PR in a few hours. Should I assign the task to myself?

          Alexandru Somai added a comment - PR: https://github.com/jenkinsci/ws-cleanup-plugin/pull/27

          The Workspace Cleanup Plugin is now Pipeline compatible starting from version 0.30.

          Alexandru Somai added a comment - The Workspace Cleanup Plugin is now Pipeline compatible starting from version 0.30.

          francisdb added a comment -

          Is the usage in a pipeline documented somewhere?

          It's not on the list of available snippets (/pipeline-syntax)

          francisdb added a comment - Is the usage in a pipeline documented somewhere? It's not on the list of available snippets (/pipeline-syntax)

          I've written some Pipeline usage examples here: https://docs.google.com/document/d/1jeIMxyiUyyv-QKXCg1P5_O0e7j89whIO7WfXLG-kcmk/edit?usp=sharing
          But maybe makes sense that these examples to be added on the wiki page.

          The snippets should be available in the Snippet Generator -> General Build Step -> Delete workspace when build is done
          Did you update to 0.30 version?

          Alexandru Somai added a comment - I've written some Pipeline usage examples here: https://docs.google.com/document/d/1jeIMxyiUyyv-QKXCg1P5_O0e7j89whIO7WfXLG-kcmk/edit?usp=sharing But maybe makes sense that these examples to be added on the wiki page. The snippets should be available in the Snippet Generator -> General Build Step -> Delete workspace when build is done Did you update to 0.30 version?

          francisdb added a comment -

          I indeed have 0.30
          Missed the "General build step" in the list.

          Thanks for the examples and indeed would be better on the wiki

          francisdb added a comment - I indeed have 0.30 Missed the "General build step" in the list. Thanks for the examples and indeed would be better on the wiki

          Code changed in jenkins
          User: Allan Burdajewicz
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/pipeline-plugin/fa8f66eb6a080c5eb057a5b8dccdc22d42f91bf9
          Log:
          JENKINS-28454 Add WsCleanup to compatible steps

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Allan Burdajewicz Path: COMPATIBILITY.md http://jenkins-ci.org/commit/pipeline-plugin/fa8f66eb6a080c5eb057a5b8dccdc22d42f91bf9 Log: JENKINS-28454 Add WsCleanup to compatible steps

          Code changed in jenkins
          User: Jesse Glick
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/pipeline-plugin/0d0879a490fb0f5adbf147f2690c90bce1acf9b3
          Log:
          Merge pull request #420 from Dohbedoh/JENKINS-28454

          JENKINS-28454 Add WsCleanup to compatible steps

          Compare: https://github.com/jenkinsci/pipeline-plugin/compare/6e744eb34fd7...0d0879a490fb

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/pipeline-plugin/0d0879a490fb0f5adbf147f2690c90bce1acf9b3 Log: Merge pull request #420 from Dohbedoh/ JENKINS-28454 JENKINS-28454 Add WsCleanup to compatible steps Compare: https://github.com/jenkinsci/pipeline-plugin/compare/6e744eb34fd7...0d0879a490fb

            alexsomai Alexandru Somai
            darenjsmith Daren Smith
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: