Clean build directories before CMake
This commit is contained in:
Vendored
+18
-14
@@ -6,25 +6,29 @@ pipeline {
|
|||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
steps {
|
steps {
|
||||||
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
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Check Windows Agent') {
|
stage('Check Windows Agent') {
|
||||||
agent { label 'windows' }
|
agent { label 'windows' }
|
||||||
steps {
|
steps {
|
||||||
bat '''
|
bat '''
|
||||||
echo Windows agent works
|
echo Windows agent works
|
||||||
hostname
|
hostname
|
||||||
where cl
|
where cmake
|
||||||
where cmake
|
where ninja
|
||||||
where ninja
|
where git
|
||||||
where git
|
java -version
|
||||||
java -version
|
|
||||||
'''
|
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
||||||
}
|
where cl
|
||||||
}
|
cl
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user