From 7a0d41b11714f11e1e169d3801371443bbf33860 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 02:58:41 +0300 Subject: [PATCH] Clean build directories before CMake --- Jenkinsfile | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75d6a38..84fe592 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,25 +6,29 @@ pipeline { agent { label 'linux' } steps { sh ''' + rm -rf build/linux cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release cmake --build build/linux ''' } } -stage('Check Windows Agent') { - agent { label 'windows' } - steps { - bat ''' - echo Windows agent works - hostname - where cl - where cmake - where ninja - where git - java -version - ''' - } -} + stage('Check Windows Agent') { + agent { label 'windows' } + steps { + bat ''' + echo Windows agent works + hostname + where cmake + where ninja + where git + java -version + + call "C:\\Program Files\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" + where cl + cl + ''' + } + } } } \ No newline at end of file