Clean build directories before CMake

This commit is contained in:
2026-05-02 03:01:18 +03:00
parent 7a0d41b117
commit 476223ad98
Vendored
+4 -1
View File
@@ -5,8 +5,9 @@ pipeline {
stage('Build Linux') { stage('Build Linux') {
agent { label 'linux' } agent { label 'linux' }
steps { steps {
cleanWs()
sh ''' sh '''
rm -rf build/linux
cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build/linux cmake --build build/linux
''' '''
@@ -16,6 +17,8 @@ pipeline {
stage('Check Windows Agent') { stage('Check Windows Agent') {
agent { label 'windows' } agent { label 'windows' }
steps { steps {
cleanWs()
bat ''' bat '''
echo Windows agent works echo Windows agent works
hostname hostname