Clean build directories before CMake
This commit is contained in:
Vendored
+7
-5
@@ -11,12 +11,13 @@ 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') {
|
||||
stage('Build Windows') {
|
||||
agent { label 'windows' }
|
||||
steps {
|
||||
cleanWs()
|
||||
@@ -30,9 +31,10 @@ stage('Build Windows') {
|
||||
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake
|
||||
|
||||
cmake --build build\\windows
|
||||
archiveArtifacts artifacts: 'build/windows/test_app.exe', fingerprint: true
|
||||
'''
|
||||
|
||||
archiveArtifacts artifacts: 'build/windows/test_app.exe', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user