Skip to content
Snippets Groups Projects
Commit c8dcda99 authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Moved clang-sanitizer to separate job.

Setting build status to UNSTABLE when it is already FAILED does
not work. See http://stackoverflow.com/a/38321558/80480.
parent 955f88fc
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ node('master') {
if (helper.isRelease()) {
builders['msvc32'] = { load 'scripts/jenkins/msvc32.groovy' }
builders['clang'] = { load 'scripts/jenkins/clang.groovy' }
build job: 'OGS-6/clang-sanitizer', wait: false
}
parallel builders
......
node('docker') {
def configure = load 'scripts/jenkins/lib/configure.groovy'
def build = load 'scripts/jenkins/lib/build.groovy'
def post = load 'scripts/jenkins/lib/post.groovy'
def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache'
def defaultCMakeOptions =
'-DOGS_LIB_BOOST=System ' +
......@@ -16,20 +20,13 @@ node('docker') {
stage 'Unit tests (Clang)'
build.linux 'build', 'tests', 'UBSAN_OPTIONS=print_stacktrace=1 make -j $(nproc)'
}
catch(err) {
echo "Clang sanitizer for unit tests failed, marking build as unstable!"
currentBuild.result = "UNSTABLE"
}
catch(err) { echo "Clang sanitizer for unit tests failed!" }
try {
stage 'End-to-end tests (Clang)'
build.linux 'build', 'ctest', 'UBSAN_OPTIONS=print_stacktrace=1 make -j $(nproc)'
}
catch(err) {
echo "Clang sanitizer for end-to-end tests failed, marking build as unstable!"
currentBuild.result = "UNSTABLE"
}
catch(err) { echo "Clang sanitizer for end-to-end tests failed!" }
}
stage 'Post (Clang)'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment