Delete workspace for only failed part of the matrix

22 views
Skip to first unread message

Romaric Crailox

unread,
Feb 15, 2017, 10:15:47 AM2/15/17
to Jenkins Users
Hello,

I have a Jenkins jobs use for compilation.
I have 2 axis : PLATFORM and MODE. PLATFORM can take x86 or crosscompile value. MODE can take debug or notdebug value.

I have "Delete workspace before build starts" option checked, and "Rerun build only for failed parts on the matrix" option of "Retry build after failure" plugin checked.
My problem is that if, for exemple, MODE debug on x86 PLATFORM failed, Jenkins rerun this part of matrix but delete all workspace at the begining of this new rerun. At the end, I have a workspace with only MODE debug on x86 PLATFORM that is compiled. Other part of matrix are not compile.


I can't "Delete workspace before build starts" in "Post Build Action" instead of "Delete workspace before build starts" because I need a compiled project to achieve some test, analysis later.
I would like to keep the principle of cleaning my workspace before build because, in my opinion, it permit to supress side effect of some old file or folder remaining of an old compilation or test.


Do you have, please, some ideas ?


Best Regards
Reply all
Reply to author
Forward
0 new messages