Skip to content

Commit dc1bbad

Browse files
Handle locked isisicp_extMC.dll
1 parent 8131c36 commit dc1bbad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ pipeline {
7272
rmdir C:\\Instrument\\Apps\\EPICS
7373
)
7474
REM or a full checkout
75+
REM isisicp_extMC.dll can get locked in windows event log
76+
del /f /q %TEMP%\\isisicp_extMC*.dlltmp
77+
set "EXTMCDIR=C:\\Instrument\\Apps\\EPICS\\ICP_Binaries\\isisdae\\x64\\Release"
78+
if exist "%EXTMCDIR%\\isisicp_extMC.dll" del /f %EXTMCDIR%\\isisicp_extMC.dll
79+
if exist "%EXTMCDIR%\\isisicp_extMC.dll" move /y %EXTMCDIR%\\isisicp_extMC.dll %TEMP%\\isisicp_extMC%RANDOM%.dlltmp
7580
if exist "C:\\Instrument\\Apps\\EPICS" (
7681
rd /s /q C:\\Instrument\\Apps\\EPICS
7782
)

0 commit comments

Comments
 (0)