From 432eae94834f0a352e94be09af80eaf278be0938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9=20=D0=9F?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= Date: Sat, 2 May 2026 03:14:55 +0300 Subject: [PATCH] Clean build directories before CMake --- Jenkinsfile | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a429ade..db2faff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 + ''' } +} } \ No newline at end of file