ci: call cleanWs after each step
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Aug 12, 2018 at 15:50 UTC
d6ac920feb97347800ba8bf6dd124b076f6a29f8
1 file changed
+5
-1
ci/Jenkinsfile
+5
-1
@@ -48,7 +48,11 @@ def setupStep(nodeLabel, f) {
48
49
def run = nodeLabel != 'windows' ? this.&sh : this.&bat
50
51
- f(run)
51
+ try {
52
+ f(run)
53
+ } finally {
54
+ cleanWs()
55
+ }
56
}
57
}
58
}