Skip to content

Commit 5cba29a

Browse files
authored
Clean nodes (#3282)
* Clean nodes
1 parent 97ef0d7 commit 5cba29a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

ci/build_test_OnCommit.groovy

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ pipeline {
4747
}
4848
}
4949
}
50-
stage('Style, SDL and clean') {
50+
stage('Style, SDL') {
5151
options {
52-
timeout(time: 20, unit: 'MINUTES')
52+
timeout(time: 20, unit: 'MINUTES')
5353
}
5454
parallel {
5555
stage('Style check') {
@@ -79,6 +79,25 @@ pipeline {
7979
}
8080
}
8181
}
82+
stage('Cleanup node') {
83+
options {
84+
timeout(time: 30, unit: 'MINUTES')
85+
}
86+
agent {
87+
label 'win_ovms'
88+
}
89+
steps {
90+
script {
91+
agent_name_windows = env.NODE_NAME
92+
def windows = load 'ci/loadWin.groovy'
93+
if (windows != null) {
94+
windows.cleanup_directories()
95+
} else {
96+
error "Cannot load ci/loadWin.groovy file."
97+
}
98+
}
99+
}
100+
}
82101
stage('Build') {
83102
options {
84103
timeout(time: 4, unit: 'HOURS')

0 commit comments

Comments
 (0)