Add extra messages to stage3 jenkins file
Change-Id: Ic87679ef5860cf5ca6e66413b5785c01535a8e1a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/jenkins/ci-pipelines/ci_stage_1.groovy b/jenkins/ci-pipelines/ci_stage_1.groovy
index 17345ea..54f4969 100644
--- a/jenkins/ci-pipelines/ci_stage_1.groovy
+++ b/jenkins/ci-pipelines/ci_stage_1.groovy
@@ -102,17 +102,17 @@
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 1347650..3af7d27 100644
--- a/jenkins/ci-pipelines/ci_stage_3.groovy
+++ b/jenkins/ci-pipelines/ci_stage_3.groovy
@@ -117,6 +117,9 @@
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 @@
unstableThreshold: unstableThreshold,
otherFiles : '*.png',
])
+ println("Robot reports were correctly published by RobotPublisher")
}
}