I have following jobs and stages and with this yml configuration the test
stage runs on schedule and regular pipelines when I set $RUN_JOB
variable to true
in my schedule and in my project's CI/CD variables. But this also schedules scheduled-test-1
and scheduled-test-2
in my scheduled pipelines.
What I want to do is that the test
stage should continue to run on schedule and regular pipelines but scheduled-test-1
and scheduled-test-2
should not be scheduled with test
stage.
stages:
build
test
deploy
scheduled-test-1
scheduled-test-2
build:
script:
- echo $Service_Version
only:
- develop
except:
- schedules
test:
script:
- echo $Service_Version
only:
variables:
- $RUN_JOB
deploy:
script:
- echo $Service_Version
only:
- develop
except:
- schedules
scheduled-test-1:
script:
- echo $Service_Version
only:
- schedules
scheduled-test-2:
script:
- echo $Service_Version
only:
- schedules