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'
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}",
unstableThreshold: unstableThreshold,
otherFiles : '*.png',
])
+ println("Robot reports were correctly published by RobotPublisher")
}
}