Deleting Jenkins jobs through GUI does not delete their workspaces in slaves

后端 未结 4 1343
日久生厌
日久生厌 2021-02-19 16:57

I recently deleted 2 job from Jenkins (via GUI). When I log into slaves afterwards I still see workspace of those 2 jobs lying around. Is this behavior normal?

Notes:

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 17:31

    I have just written a script that can be scheduled periodically to clean unused workspace. It will go through all of the Jenkins slaves and check if the directories under the workspace are already deleted in Jenkins master.

    https://gist.github.com/ceilfors/1400fd590632db1f51ca

提交回复
热议问题