Delete workspace on slave

34 views
Skip to first unread message

Romaric Crailox

unread,
Apr 7, 2017, 2:47:32 AM4/7/17
to Jenkins Users
Hello,

I do not know if it's normal or a Jenkins error, but I have a job with configuration matrix to perform build on 2 computer.
I have "Delete workspace before build starts" option checked on this job.

Unfortunately, workspace is delete only on "master" node, that is node where main job (job which launch all the job necessary to cover configuration matrix) is perform.
Workspace on second node is not delete.

Do you know if it's normal?

Thanks

Mark Waite

unread,
Apr 7, 2017, 9:30:34 AM4/7/17
to Jenkins Users
I suspect that is behaving as expected.  The "Delete workspace before build starts" probably only deletes the "flyweight" workspace when it is used in the context of a multi-configuration job.

If you're using Git as your SCM, there is an "Additional Behaviours" choice to "Wipe out repository and force clone".  That will wipe the workspace in each of the multi-configuration jobs.

Mark Waite

--
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/8bdfc171-45fa-4fd2-ba22-7f9b021b09ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Romaric Crailox

unread,
Apr 10, 2017, 2:40:08 AM4/10/17
to Jenkins Users
Thanks for this answere and solution (I use Git).
Reply all
Reply to author
Forward
0 new messages