Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit a0bf935f9c40993f62f20623298dc5117aaba38d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
... | ... |
@@ -76,7 +76,11 @@ pipeline { |
76 | 76 |
echo 'Creating unit-bundles.tar.gz' |
77 | 77 |
tar -czvf unit-bundles.tar.gz bundles/junit-report.xml bundles/go-test-report.json bundles/profile.out |
78 | 78 |
''' |
79 |
+ |
|
79 | 80 |
archiveArtifacts artifacts: 'unit-bundles.tar.gz' |
81 |
+ } |
|
82 |
+ cleanup { |
|
83 |
+ sh 'make clean' |
|
80 | 84 |
deleteDir() |
81 | 85 |
} |
82 | 86 |
} |
... | ... |
@@ -142,7 +146,11 @@ pipeline { |
142 | 142 |
echo "Creating janky-bundles.tar.gz" |
143 | 143 |
(find bundles -name '*.log' -o -name '*.prof' -o -name integration.test | xargs tar -czf janky-bundles.tar.gz) || true |
144 | 144 |
''' |
145 |
+ |
|
145 | 146 |
archiveArtifacts artifacts: 'janky-bundles.tar.gz' |
147 |
+ } |
|
148 |
+ cleanup { |
|
149 |
+ sh 'make clean' |
|
146 | 150 |
deleteDir() |
147 | 151 |
} |
148 | 152 |
} |
... | ... |
@@ -195,8 +203,10 @@ pipeline { |
195 | 195 |
(find bundles -name '*.log' -o -name '*.prof' -o -name integration.test | xargs tar -czf experimental-bundles.tar.gz) || true |
196 | 196 |
''' |
197 | 197 |
|
198 |
- sh 'make clean' |
|
199 | 198 |
archiveArtifacts artifacts: 'experimental-bundles.tar.gz' |
199 |
+ } |
|
200 |
+ cleanup { |
|
201 |
+ sh 'make clean' |
|
200 | 202 |
deleteDir() |
201 | 203 |
} |
202 | 204 |
} |
... | ... |
@@ -248,7 +258,11 @@ pipeline { |
248 | 248 |
echo "Creating bundles.tar.gz" |
249 | 249 |
find bundles -name '*.log' | xargs tar -czf s390x-bundles.tar.gz |
250 | 250 |
''' |
251 |
+ |
|
251 | 252 |
archiveArtifacts artifacts: 's390x-bundles.tar.gz' |
253 |
+ } |
|
254 |
+ cleanup { |
|
255 |
+ sh 'make clean' |
|
252 | 256 |
deleteDir() |
253 | 257 |
} |
254 | 258 |
} |
... | ... |
@@ -300,7 +314,11 @@ pipeline { |
300 | 300 |
echo "Creating bundles.tar.gz" |
301 | 301 |
find bundles -name '*.log' | xargs tar -czf powerpc-bundles.tar.gz |
302 | 302 |
''' |
303 |
+ |
|
303 | 304 |
archiveArtifacts artifacts: 'powerpc-bundles.tar.gz' |
305 |
+ } |
|
306 |
+ cleanup { |
|
307 |
+ sh 'make clean' |
|
304 | 308 |
deleteDir() |
305 | 309 |
} |
306 | 310 |
} |
... | ... |
@@ -336,7 +354,12 @@ pipeline { |
336 | 336 |
} |
337 | 337 |
} |
338 | 338 |
} |
339 |
- } |
|
339 |
+ post { |
|
340 |
+ cleanup { |
|
341 |
+ sh 'make clean' |
|
342 |
+ deleteDir() |
|
343 |
+ } |
|
344 |
+ } } |
|
340 | 345 |
stage('windowsRS1') { |
341 | 346 |
when { |
342 | 347 |
beforeAgent true |