Skip to content

Commit

Permalink
fix: remove xray link from slack notifier if xray id is null (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexromanov authored Nov 19, 2024
1 parent 1b1f868 commit 9eff83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion E2E-tests/report_slack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>\"
Expand Down

0 comments on commit 9eff83d

Please sign in to comment.