File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ def client_test_needed = "false"
4
4
def shortCommit = " "
5
5
def agent_name_windows = " "
6
6
def agent_name_linux = " "
7
+ def windows_success = " "
7
8
8
9
pipeline {
9
10
agent {
@@ -102,6 +103,7 @@ pipeline {
102
103
windows. build()
103
104
} finally {
104
105
windows. archive_build_artifacts()
106
+ windows_success = " True"
105
107
}
106
108
} else {
107
109
error " Cannot load ci/loadWin.groovy file."
@@ -130,7 +132,7 @@ pipeline {
130
132
}
131
133
}
132
134
}
133
- }
135
+ }
134
136
stage(" Internal tests" ) {
135
137
agent {
136
138
label " ${ agent_name_linux} "
@@ -174,8 +176,21 @@ pipeline {
174
176
}
175
177
}
176
178
}
177
- }
179
+ }
178
180
}
179
181
}
180
182
}
183
+ post {
184
+ always {
185
+ node(" ${ agent_name_windows} " ) {
186
+ script {
187
+ if (env. BRANCH_NAME == " main" && windows_success == " True" ) {
188
+ bat(returnStatus :true , script : " ECHO F | xcopy /Y /E C:\\ Jenkins\\ workspace\\ ovms_oncommit_main\\ dist\\ windows\\ ovms.zip \\\\ ${ env.OV_SHARE_05_IP} \\ data\\ cv_bench_cache\\ OVMS_do_not_remove\\ ovms-windows-main-latest.zip" )
189
+ } else {
190
+ echo " Not a main branch, skipping copying artifacts."
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }
181
196
}
You can’t perform that action at this time.
0 commit comments