Workspace is not getting deleted

21 views
Skip to first unread message

rahul gupta

unread,
Jul 1, 2022, 8:47:57 AM7/1/22
to Jenkins Users
Hey Folks,

Two workspaces are being created for a particular job after it has been built and only one of those is getting deleted after implementing cleanws() in the pipeline. I need to delete the other workspace as well. What can be the resolution to this?

PFA screenshot for the reference.

Thanks,
Rahul Gupta
question.PNG

Krish S

unread,
Jul 1, 2022, 11:02:55 AM7/1/22
to jenkins...@googlegroups.com, rahulg...@gmail.com
One workspace is for build in server which is checking out library, and another checking out source code. Workspace is getting cleared on slave1 as you might have workspace cleanup command running inside node. I would recommend you to try checking out library within node/pipeline within same stage. 



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/622f3971-f672-4b3f-8916-a1c71fc4a5a0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages