Clean build directories before CMake

This commit is contained in:
2026-05-02 03:14:55 +03:00
parent 24bb776645
commit 432eae9483
Vendored
+14 -18
View File
@@ -15,25 +15,21 @@ pipeline {
}
}
stage('Check Windows Agent') {
agent { label 'windows' }
steps {
cleanWs()
checkout scm
stage('Build Windows') {
agent { label 'windows' }
steps {
cleanWs()
checkout scm
bat '''
echo Windows agent works
hostname
where cmake
where ninja
where git
java -version
bat '''
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
where cl
cl
'''
}
}
cmake -S . -B build\\windows -G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake
cmake --build build\\windows
'''
}
}
}