Jenkinsfile: Catch errors from emscripten

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-08-09 12:12:41 +02:00
parent a98cd3e534
commit c720769305
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 6 additions and 4 deletions

10
Jenkinsfile vendored
View File

@ -50,10 +50,12 @@ pipeline {
echo "Building the ${env.BRANCH_NAME} branch.."
buildTarget('x86_64-linux-musl', 'x86_64', 'amd64')
buildTarget('i686-linux-musl', 'i386', 'i386')
cmakeBuild buildDir: "cmake-build-release-emscripten", buildType: 'release', cleanBuild: true, installation: 'Latest',
cmakeArgs: "-DCMAKE_TOOLCHAIN_FILE=\"/usr/share/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" ${no_compilation_cache_flags()} -DNO_SELF_PACKER=ON",
generator: cmake_generator()
cmake arguments: "--build ./cmake-build-release-emscripten", installation: 'Latest'
catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
cmakeBuild buildDir: "cmake-build-release-emscripten", buildType: 'release', cleanBuild: true, installation: 'Latest',
cmakeArgs: "-DCMAKE_TOOLCHAIN_FILE=\"/usr/share/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\" ${no_compilation_cache_flags()} -DNO_SELF_PACKER=ON",
generator: cmake_generator()
cmake arguments: "--build ./cmake-build-release-emscripten", installation: 'Latest'
}
}
}
stage('Build for other architectures') {