test(e2e): do not fail build on XRay failure
send slack message and allow build to pass
@@ -424,6 +424,7 @@ pipeline {
junit "${e2e_reports_dir}/*.xml"
script {
if (xray_send_report == true) {
+ try {
def xray_testplan = getTestPlan()
def tag = getTag()
step([
@@ -448,6 +449,16 @@ pipeline {
}
}"""
])
+ } catch (err) {
+ echo 'XRay failed'
+ echo err.getMessage()
+ // Send Slack message to inform of XRay failure
+ slackSend(
+ channel: '#mayastor-e2e',
+ color: 'danger',
+ message: "E2E failed to send XRay reports (<${env.BUILD_URL}|Open>)"
+ )
+ }
}
}
}
