Skip to content

Commit

Permalink
Jenkinsfile: continue building packages despite failure
Browse files Browse the repository at this point in the history
Do not stop CI when package(s) fail(s) to build. Fail CI once building all packages finishes

Signed-off-by: Nikhil Zinjurde <[email protected]>
  • Loading branch information
nikhil-zinjurde-imgtec committed Mar 7, 2017
1 parent c25a146 commit 6838e01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6838e01

Please sign in to comment.