Clean build directories before CMake
This commit is contained in:
Vendored
+4
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user