Jenkins Pipeline Wipe Out Workspace

前端 未结 13 1453
你的背包
你的背包 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:52

    Currently both deletedir() and cleanWs() do not work properly when using Jenkins kubernetes plugin, the pod workspace is deleted but the master workspace persists

    it should not be a problem for persistant branches, when you have a step to clean the workspace prior to checkout scam. It will basically reuse the same workspace over and over again: but when using multibranch pipelines the master keeps the whole workspace and git directory

    I believe this should be an issue with Jenkins, any enlightenment here?

提交回复
热议问题