I am trying to run my test suit using GitLab with annotations so suppose i have 4 Scenario defined out of which two are for regression and 2 are sanity but when pass tag named regression it run my regression hook now, I want a solution if I don't pass any tag it should run sanity hook
stages:
- build
cucumber_test:
stage: build
tags: [regression , sanity]
allow_failure: false
script:
- mvn "clean" "test" "-Dcucumber.filter.tags=@%Tag%"
rules:
- if: '$Tag == "reg"'
allow_failure: true
artifacts:
paths:
- Report
when: always