@@ -72,6 +72,9 @@ pipeline {
72
72
) else (
73
73
md C:\\ Instrument\\ Apps\\ EPICS-%MYJOB%
74
74
)
75
+ REM clear logs early to stop reporting previous errors
76
+ REM in case install aborts
77
+ call %WORKSPACE%\c lear_logs.bat
75
78
if exist "C:\\ Instrument\\ Apps\\ EPICS" (
76
79
@echo Removing EPICS directory link
77
80
rmdir "C:\\ Instrument\\ Apps\\ EPICS"
@@ -127,14 +130,8 @@ pipeline {
127
130
if exist "C:\\ Instrument\\ Apps\\ EPICS" (
128
131
rmdir "C:\\ Instrument\\ Apps\\ EPICS"
129
132
)
130
- del /q C:\\ Instrument\\ Var\\ logs\\ ioc\\ *.*
131
- del /q C:\\ Instrument\\ Var\\ logs\\ conserver\\ *.*
132
- del /q C:\\ Instrument\\ Var\\ logs\\ gateway\\ blockserver\\ *.*
133
- del /q C:\\ Instrument\\ Var\\ logs\\ gateway\\ external\\ *.*
134
- del /q C:\\ Instrument\\ Var\\ logs\\ genie_python\\ *.*
135
- del /q C:\\ Instrument\\ Var\\ logs\\ deploy\\ *.*
136
- del /q C:\\ Instrument\\ Var\\ logs\\ ibex_server\\ *.*
137
- del /q C:\\ Instrument\\ Var\\ logs\\ IOCTestFramework\\ *.*
133
+ REM as ELOCK is released between stages clear logs to be safe
134
+ call %WORKSPACE%\c lear_logs.bat
138
135
mklink /J C:\\ Instrument\\ Apps\\ EPICS C:\\ Instrument\\ Apps\\ EPICS-%MYJOB%
139
136
IF %errorlevel% NEQ 0 (
140
137
@echo ERROR: unable to make EPICS directory junction link to EPICS-%MYJOB% - error %errorlevel%
@@ -231,6 +228,11 @@ pipeline {
231
228
)
232
229
rmdir "C:\\ Instrument\\ Apps\\ EPICS" >NUL 2>&1
233
230
rd /q /s %WORKSPACE:/=\\ %\\ my_venv>NUL 2>&1
231
+ REM clear logs as we have already archived them. Though we clear
232
+ REM logs before an install also remove them here in case
233
+ REM next job git checkout aborts and tries to report same errors
234
+ REM as now all over again
235
+ call %WORKSPACE%\c lear_logs.bat
234
236
@echo Finished cleanup on node ${ env.NODE_NAME}
235
237
@echo ***
236
238
@echo *** Any Office365connector Matched status FAILURE message below means
0 commit comments