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

Workspace Cleanup integration with Workflow

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            darenjsmith Daren Smith created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Component/s workflow-plugin [ 18820 ]
            Labels workflow
            Summary Add integration support with Jenkins Workflow DSL Workspace Cleanup integration with Workflow
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            AFAIK Alexandru Somai has a kind of prototype for it

            Show
            oleg_nenashev Oleg Nenashev added a comment - AFAIK Alexandru Somai has a kind of prototype for it
            Hide
            alexsomai 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?

            Show
            alexsomai 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?
            alexsomai Alexandru Somai made changes -
            Assignee Jesse Glick [ jglick ] Alexandru Somai [ alexsomai ]
            alexsomai Alexandru Somai made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Show
            alexsomai Alexandru Somai added a comment - PR: https://github.com/jenkinsci/ws-cleanup-plugin/pull/27
            alexsomai Alexandru Somai made changes -
            Link This issue is duplicated by JENKINS-36530 [ JENKINS-36530 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163294 ] JNJira + In-Review [ 185604 ]
            Hide
            alexsomai Alexandru Somai added a comment -

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

            Show
            alexsomai Alexandru Somai added a comment - The Workspace Cleanup Plugin is now Pipeline compatible starting from version 0.30.
            alexsomai Alexandru Somai made changes -
            Resolution Done [ 10000 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            Hide
            francisdb francisdb added a comment -

            Is the usage in a pipeline documented somewhere?

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

            Show
            francisdb francisdb added a comment - Is the usage in a pipeline documented somewhere? It's not on the list of available snippets (/pipeline-syntax)
            Hide
            alexsomai 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?

            Show
            alexsomai 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?
            Hide
            francisdb 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

            Show
            francisdb 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
            abayer Andrew Bayer made changes -
            Labels workflow pipeline workflow
            abayer Andrew Bayer made changes -
            Labels pipeline workflow pipeline
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Remote Link This issue links to "pipeline PR#420 (Web Link)" [ 15061 ]
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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

              People

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

                Dates

                Created:
                Updated:
                Resolved: