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:
parent
6e068785a8
commit
eb64c5105e
1 changed files with 2 additions and 2 deletions
|
|
@ -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=""
|
||||
|
|
|
|||
Loading…
Reference in a new issue