From dffe67f181d0167b8009452dcafaeb160fbe9aef Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Sun, 18 Aug 2024 10:48:56 +0200 Subject: [PATCH] Add extra messages to stage3 jenkins file Change-Id: Ic87679ef5860cf5ca6e66413b5785c01535a8e1a Signed-off-by: garciadeblas --- jenkins/ci-pipelines/ci_stage_1.groovy | 6 +++--- jenkins/ci-pipelines/ci_stage_3.groovy | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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") } } -- 2.25.1