Jenkins: Is there any way to cleanup Jenkins workspace?

后端 未结 11 1872
既然无缘
既然无缘 2020-11-29 03:18

How can I cleanup the workspace in Jenkins? I am using AccuRev as version control tool.

I created freestyle projects in Jenkins.

11条回答
  •  盖世英雄少女心
    2020-11-29 03:52

    There is a way to cleanup workspace in Jenkins. You can clean up the workspace before build or after build.

    First, install Workspace Cleanup Plugin.

    To clean up the workspace before build: Under Build Environment, check the box that says Delete workspace before build starts.

    To clean up the workspace after the build: Under the heading Post-build Actions select Delete workspace when build is done from the Add Post-build Actions drop down menu.

提交回复
热议问题