fixing exit status in pybot executions
Change-Id: Ibaa6251a6a57ddaf2cb522fc4e113fc9f221bec8
diff --git a/Jenkinsfile-rcordlite-zerotouch b/Jenkinsfile-rcordlite-zerotouch
index 73f6291..22edfdb 100644
--- a/Jenkinsfile-rcordlite-zerotouch
+++ b/Jenkinsfile-rcordlite-zerotouch
@@ -171,8 +171,7 @@
export KUBECONFIG=/home/cord/${deployment_config.pod_config}
cd /home/cord/cord-tester/src/test/robot/
rm -rf Log/ || true
- pybot -d Log -T SanityK8POD.robot || all_passed=false
- #if [ "\\\$all_passed" = true ]; then exit 0; else exit 1; fi
+ pybot -d Log -T SanityK8POD.robot || true
"""
} catch(error) { currentBuild.result = 'FAILURE' }
}
@@ -189,11 +188,10 @@
sed -i \"s/^\\(XOS_PASSWD = \\).*/\\1\'letmein\'/\" RestApiProperties.py
cd /home/cord/cord-tester/src/test/cord-api/Tests/
rm -rf Log/ || true
- pybot -d Log -T FabricConfig.txt || all_passed=false
- pybot -d Log -T HippieOSS.txt || all_passed=false
- pybot -d Log -T OSSVolt.txt || all_passed=false
- pybot -d Log -T RealOLT_Test.txt || all_passed=false
- #if [ "\\\$all_passed" = true ]; then exit 0; else exit 1; fi
+ pybot -d Log -T FabricConfig.txt || true
+ pybot -d Log -T HippieOSS.txt || true
+ pybot -d Log -T OSSVolt.txt || true
+ pybot -d Log -T RealOLT_Test.txt || true
"""
} catch(error) { currentBuild.result = 'FAILURE' }
}
@@ -203,7 +201,7 @@
sh """
if [ -d RobotLogs ]; then rm -r RobotLogs; fi; mkdir RobotLogs;
mkdir RobotLogs/TestDoc || true
- //cp -r /home/cord/cord-tester/src/test/robot/Log/* ./RobotLogs || true
+ cp -r /home/cord/cord-tester/src/test/robot/Log/* ./RobotLogs || true
cp -r /home/cord/cord-tester/src/test/cord-api/Tests/Log/* ./RobotLogs || true
"""
step([$class: 'RobotPublisher',