Commit 7d65acc5 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Force the fail the pipeline is build fails for release

parent 127522ef
Pipeline #2625210 passed with stage
in 1 minute and 17 seconds
......@@ -24,6 +24,11 @@ def buildPackages() {
ctest -VV -DCTEST_LABELS=Release -S lcgcmake/jenkins/lcgcmake-build.cmake
"""
}
//---Fail the release if the build stage fails-------------------------------------------------------------------------
if ( params.BUILDMODE == 'release' && currentBuild.result == 'UNSTABLE') {
echo 'Setting the build state to FAILURE for BUILDMODE equal to release'
currentBuild.result = 'FAILURE'
}
//---Update a number of variables after the build step-----------------------------------------------------------------
PLATFORM = sh(returnStdout: true, script: 'lcgcmake/jenkins/getPlatform.py').trim()
barePLATFORM = ([PLATFORM.split('-')[0].split('\\+')[0]]+PLATFORM.split('-')[1..3]).join('-').replace('gcc7','gcc8').replace('dbg','opt')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment