Add extra messages to stage3 jenkins file 16/14516/3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Sun, 18 Aug 2024 08:48:56 +0000 (10:48 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 19 Aug 2024 13:38:05 +0000 (15:38 +0200)
Change-Id: Ic87679ef5860cf5ca6e66413b5785c01535a8e1a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_1.groovy
jenkins/ci-pipelines/ci_stage_3.groovy

index 17345ea..54f4969 100644 (file)
@@ -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'
index 1347650..3af7d27 100644 (file)
@@ -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")
     }
 }