How does using
workflow:rules at the top level interact with
rules defined (or even not defined) in a job? I haven’t been able to find this in the documentation.
For more reference, I want to be able to combine the two so that I can run a single job on schedule.
First I want to (by default) disable all jobs from running on schedule
workflow: rules: - if: $CI_PIPELINE_SOURCE == "schedule" when: never
But I want this single job to run by essentially overriding the
scheduled_job: stage: test script: - echo "I ran..." rules: - if: $CI_PIPELINE_SOURCE == "schedule" when: always
Clearly, this wont work because the pipeline will not be created in the first place. How can I achieve this functionality without changing ALL my jobs but by only changing