Skip to content

Commit da8b4e4

Browse files
author
Assistant Bot
committed
refactor: Update Jenkins shared library to windows_file_lock branch and remove manual pre-clean stage.
1 parent 456aafc commit da8b4e4

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Jenkinsfile_develop_windows

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
//Jenkins pipelines are stored in shared libaries. Please see: https://github.com/NREL/cbci_jenkins_libs
22

3-
@Library('cbci_shared_libs') _
3+
@Library('cbci_shared_libs@windows_file_lock') _
44

55
// Build for PR to develop branch only.
66
if ((env.CHANGE_ID) && (env.CHANGE_TARGET) ) {
77

8-
node('openstudio-win-server-vs-2019-ssh-incr-aws') {
9-
stage('Pre-clean') {
10-
// Kill any stuck ctest processes from previous runs that might be holding file locks
11-
powershell("Stop-Process -Name 'ctest', 'openstudio' -Force -ErrorAction SilentlyContinue")
12-
sleep(10)
13-
14-
// Try to clean up the Testing directory which was causing failures
15-
// We use PowerShell directly to avoid Java exceptions if files are still locked (though Stop-Process should fix it)
16-
// and to ensure we target the specific path used by the shared library
17-
powershell("Remove-Item -Recurse -Force 'D:/git/OS-build-release-v2/Testing' -ErrorAction SilentlyContinue")
18-
}
19-
}
20-
218
openstudio_incremental_develop_windows()
229

2310
}

0 commit comments

Comments
 (0)