Skip to content
Snippets Groups Projects
Commit 6225664b authored by garciadeblas's avatar garciadeblas
Browse files

Fix stage3 to capture exceptions in shell scripts that prevented robot results publication


Change-Id: Ib80e059cf900e6c467144a85a5482a129ae358ba
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 8579587b
No related branches found
No related tags found
No related merge requests found
...@@ -113,11 +113,17 @@ void run_robot_systest(String tagName, ...@@ -113,11 +113,17 @@ void run_robot_systest(String tagName,
-c -t ${testName}""") -c -t ${testName}""")
} }
} finally { } finally {
sh("cp ${tempdir}/*.xml .") try {
sh("cp ${tempdir}/*.html .") sh("cp ${tempdir}/*.xml .")
outputDirectory = sh(returnStdout: true, script: 'pwd').trim() sh("cp ${tempdir}/*.html .")
println("Present Directory is : ${outputDirectory}") outputDirectory = sh(returnStdout: true, script: 'pwd').trim()
sh("tree ${outputDirectory}") println("Present Directory is : ${outputDirectory}")
sh("tree ${outputDirectory}")
} catch (Exception e) {
println("Something happened during the execution of shell script: ${e.message}")
}
println("Continue with the publication of Robot results...")
println("passThreshold: ${passThreshold}") println("passThreshold: ${passThreshold}")
println("unstableThreshold: ${unstableThreshold}") println("unstableThreshold: ${unstableThreshold}")
step([ step([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment