This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Commit 57e46fc
committed
CI Jenkinsfile: change rotation and deletion of previous workspaces
Recantly added workspace rename did not happen if build failed,
causing longer duration in next clean stage, but what's worse,
failed workspace was not preserved, contrary to what we need.
Moving rename operation to finally block would add race possibilities.
So we change the workspaces naming scheme. Workspace gets name
with CI_BUILD_ID from very start, thus eliminating need
to rename and risk of race. Older workspaces get deleted
as CI_BUILD_ID ensures ordered-in-time series.
Use regex in deletion and separate pass for temp.dirs.
Workspace name prefix is shortened to ci- for shorter path names.
Signed-off-by: Olev Kartau <olev.kartau@intel.com>1 parent c1cf872 commit 57e46fc
1 file changed
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 105 | | |
111 | 106 | | |
112 | 107 | | |
| |||
301 | 296 | | |
302 | 297 | | |
303 | 298 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
307 | 302 | | |
308 | 303 | | |
309 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
0 commit comments