From 6838e0101860e6e2a9baa3de63f5a47a1b27b2d1 Mon Sep 17 00:00:00 2001 From: Nikhil Zinjurde Date: Tue, 7 Mar 2017 12:13:13 +0530 Subject: [PATCH] Jenkinsfile: continue building packages despite failure Do not stop CI when package(s) fail(s) to build. Fail CI once building all packages finishes Signed-off-by: Nikhil Zinjurde --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index da23862..1b85154 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,7 +75,12 @@ node('docker && imgtec') { throw err } echo 'Parallel build failed, attempting to continue in single threaded mode' - sh "make package/${item}/compile -j1 V=s" + try { + sh "make package/${item}/compile -j1 V=s" + } catch (exc) { + echo "Caught: ${exc}" + currentBuild.result = 'FAILURE' + } } } // Add package signing key