Adds "@" prefix to Jira card number grep filter.

Updates the grep filter for Jira card numbers to include the "@" prefix, ensuring accurate filtering by test case tag. This ensures that only tests specifically tagged with the Jira card number are executed.
This commit is contained in:
maguire-arman 2025-07-09 14:32:31 -04:00
parent 6e068785a8
commit eb64c5105e

View file

@ -127,13 +127,13 @@ jobs:
FILTER=""
if [[ -n "${{ parameters.filterTags }}" && -n "$JIRA_CARD_NUMBER" ]]; then
echo "Filtering by filterTags and Jira Card Number..."
FILTER="--grep '$JIRA_CARD_NUMBER|${{ parameters.filterTags }}'"
FILTER="--grep '@$JIRA_CARD_NUMBER|${{ parameters.filterTags }}'"
elif [[ -n "${{ parameters.filterTags }}" ]]; then
echo "Filtering by filterTags only..."
FILTER="--grep '${{ parameters.filterTags }}'"
elif [[ -n "$JIRA_CARD_NUMBER" ]]; then
echo "Filtering by Jira card number only..."
FILTER="--grep '$JIRA_CARD_NUMBER'"
FILTER="--grep '@$JIRA_CARD_NUMBER'"
else
echo "No filter. Running all test cases..."
FILTER=""