Clean build directories before CMake
This commit is contained in:
Vendored
+14
-18
@@ -15,25 +15,21 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Check Windows Agent') {
|
stage('Build Windows') {
|
||||||
agent { label 'windows' }
|
agent { label 'windows' }
|
||||||
steps {
|
steps {
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
bat '''
|
bat '''
|
||||||
echo Windows agent works
|
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
||||||
hostname
|
|
||||||
where cmake
|
|
||||||
where ninja
|
|
||||||
where git
|
|
||||||
java -version
|
|
||||||
|
|
||||||
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
cmake -S . -B build\\windows -G Ninja ^
|
||||||
where cl
|
-DCMAKE_BUILD_TYPE=Release ^
|
||||||
cl
|
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake
|
||||||
'''
|
|
||||||
}
|
cmake --build build\\windows
|
||||||
}
|
'''
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user