From ec3e3ba85ac3e63a92f61bc8ddba13618894dbc8 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:21:14 +0300 Subject: [PATCH] Clean build directories before CMake --- Jenkinsfile | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f917016..4e3eea7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,28 +11,30 @@ pipeline { sh ''' cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release cmake --build build/linux - archiveArtifacts artifacts: 'build/linux/test_app', fingerprint: true ''' + + archiveArtifacts artifacts: 'build/linux/test_app', fingerprint: true } } -stage('Build Windows') { - agent { label 'windows' } - steps { - cleanWs() - checkout scm + stage('Build Windows') { + agent { label 'windows' } + steps { + cleanWs() + checkout scm - bat ''' - call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" + bat ''' + call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" - cmake -S . -B build\\windows -G Ninja ^ - -DCMAKE_BUILD_TYPE=Release ^ - -DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake + cmake -S . -B build\\windows -G Ninja ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake - cmake --build build\\windows - archiveArtifacts artifacts: 'build/windows/test_app.exe', fingerprint: true - ''' + cmake --build build\\windows + ''' + + archiveArtifacts artifacts: 'build/windows/test_app.exe', fingerprint: true + } + } } -} -} } \ No newline at end of file