diff --git a/Jenkinsfile b/Jenkinsfile index ec099d2..57d058e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {