From: garciadeblas Date: Sun, 18 Aug 2024 08:48:56 +0000 (+0200) Subject: Add extra messages to stage3 jenkins file X-Git-Tag: release-v16.0-start~10 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=dffe67f181d0167b8009452dcafaeb160fbe9aef;p=osm%2Fdevops.git Add extra messages to stage3 jenkins file Change-Id: Ic87679ef5860cf5ca6e66413b5785c01535a8e1a Signed-off-by: garciadeblas --- diff --git a/jenkins/ci-pipelines/ci_stage_1.groovy b/jenkins/ci-pipelines/ci_stage_1.groovy index 17345ea8..54f49699 100644 --- a/jenkins/ci-pipelines/ci_stage_1.groovy +++ b/jenkins/ci-pipelines/ci_stage_1.groovy @@ -102,17 +102,17 @@ node("${params.NODE}") { println("Downstream job: ${downstream_job_name}") println("Downstream parameters: ${downstream_params}") - currentBuild.result = 'SUCCESS' + currentBuild.result = 'SUCCESS' try { 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() - // Jayant if the build fails the below error will cause the pipeline to terminate. + // Jayant if the build fails the below error will cause the pipeline to terminate. // error("${project} build ${build} failed") currentBuild.result = stage_3_merge_result.getResult() } - } + } catch(caughtError) { echo 'Exception in stage_1' currentBuild.result = 'FAILURE' diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 13476508..3af7d273 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -117,6 +117,9 @@ void run_robot_systest(String tagName, sh("cp ${tempdir}/*.html .") outputDirectory = sh(returnStdout: true, script: 'pwd').trim() println("Present Directory is : ${outputDirectory}") + sh("tree ${outputDirectory}") + println("passThreshold: ${passThreshold}") + println("unstableThreshold: ${unstableThreshold}") step([ $class : 'RobotPublisher', outputPath : "${outputDirectory}", @@ -128,6 +131,7 @@ void run_robot_systest(String tagName, unstableThreshold: unstableThreshold, otherFiles : '*.png', ]) + println("Robot reports were correctly published by RobotPublisher") } }