From c720769305289e82ebf98d991b21d83c1463f607 Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 9 Aug 2022 12:12:41 +0200 Subject: [PATCH] Jenkinsfile: Catch errors from emscripten Signed-off-by: Username404 --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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') {