From 0acd0f23bde2712846a49f049ac0bc7756349f66 Mon Sep 17 00:00:00 2001 From: carmithersh Date: Mon, 10 Feb 2025 11:54:48 +0200 Subject: [PATCH] CCS-4 JIRA evidence based on branch name --- .github/workflows/jira-evidence-example.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jira-evidence-example.yml b/.github/workflows/jira-evidence-example.yml index d3839f4..c4d1244 100644 --- a/.github/workflows/jira-evidence-example.yml +++ b/.github/workflows/jira-evidence-example.yml @@ -78,7 +78,8 @@ jobs: if [[ $jira_id =~ ^[A-Z]+-[0-9]+$ ]]; then echo "A valid JIRA ID was found in branch name: $jira_id" set +e - ./examples/jira-transition-example/bin/jira-transition-checker-linux-amd64 --failOnMissingTransition "Done" $jira_id > predicate.json + ./examples/jira-transition-example/bin/jira-transition-checker-linux-amd64 "Done" $jira_id > predicate.json + # add --failOnMissingTransition to fail the build if the JIRA does not pass the transition check EXIT_CODE=$? set -e # create evidence only if the jira transition checker was successful