Jenkins Pipeline Wipe Out Workspace

前端 未结 13 1428
你的背包
你的背包 2020-12-04 08:59

We are running Jenkins 2.x and love the new Pipeline plugin. However, with so many branches in a repository, disk space fills up quickly.

Is there any plugin that

13条回答
  •  自闭症患者
    2020-12-04 09:30

    You can use deleteDir() as the last step of the pipeline Jenkinsfile (assuming you didn't change the working directory).

提交回复
热议问题