From 9eff83def08befc877d008eff78d2c8131823f3f Mon Sep 17 00:00:00 2001 From: Oleksandr Romanov Date: Tue, 19 Nov 2024 11:59:34 +0200 Subject: [PATCH] fix: remove xray link from slack notifier if xray id is null (#240) --- E2E-tests/report_slack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/E2E-tests/report_slack.sh b/E2E-tests/report_slack.sh index fa6150299..ef77e45b8 100755 --- a/E2E-tests/report_slack.sh +++ b/E2E-tests/report_slack.sh @@ -61,7 +61,7 @@ fields="{ \"text\": \"<$job_url|CI job>\" }" -if [ -n "$xray_id" ]; then +if [[ "$jira_url" == *"https://"* ]] && [ -n "$xray_id" ] && [ "$xray_id" != "null" ]; then fields+=",{ \"type\": \"mrkdwn\", \"text\": \"<$xray_exec_url|Xray report>\"