Skip to content
Snippets Groups Projects
Commit f1492c32 authored by garciadeblas's avatar garciadeblas Committed by Mark Beierl
Browse files

ci_stage_1.groovy: clean-up indentation


Change-Id: I0745dc2e4dfd94b17b2403542e2aae3023530bb8
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 384ac857
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ node("${params.NODE}") {
println("TEST_INSTALL = ${params.TEST_INSTALL}, downstream job: ${downstream_job_name}")
currentBuild.result = 'SUCCESS'
try {
stage_3_merge_result = build job: "${downstream_job_name}", parameters: downstream_params, propagate: true
stage_3_merge_result = build job: "${downstream_job_name}", parameters: downstream_params, propagate: true
if (stage_3_merge_result.getResult() != 'SUCCESS') {
project = stage_3_merge_result.getProjectName()
build = stage_3_merge_result.getNumber()
......@@ -104,28 +104,26 @@ node("${params.NODE}") {
// error("${project} build ${build} failed")
currentBuild.result = stage_3_merge_result.getResult()
}
}
catch(caughtError) {
echo 'Exception in stage_1'
currentBuild.result = 'FAILURE'
}
finally {
try {
if((currentBuild.result != 'SUCCESS') && (env.JOB_NAME == 'daily-stage_4')){
emailext (
subject: "[OSM-Jenkins] Job: ${env.JOB_NAME} Build: ${env.BUILD_NUMBER} Result: ${currentBuild.result}",
body: """ Check console output at "${env.BUILD_URL}" """,
to: 'OSM_MDL@list.etsi.org',
recipientProviders: [culprits()]
)
}
catch(caughtError) {
echo 'Exception in stage_1'
currentBuild.result = 'FAILURE'
}
finally {
try {
if((currentBuild.result != 'SUCCESS') && (env.JOB_NAME == 'daily-stage_4')){
emailext (
subject: "[OSM-Jenkins] Job: ${env.JOB_NAME} Build: ${env.BUILD_NUMBER} Result: ${currentBuild.result}",
body: """ Check console output at "${env.BUILD_URL}" """,
to: 'OSM_MDL@list.etsi.org',
recipientProviders: [culprits()]
)
}
}
}
catch(caughtError) {
echo "Failure in executing email"
}
}
}
catch(caughtError) {
echo "Failure in executing email"
}
}
}
}
}
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