Hi,
I thought I understood “rules”:
int-build:
tags:
- internet
stage: build
artifacts:
paths:
- gitops/
expire_in: 1 hrs
rules:
- if: '$CI_COMMIT_BRANCH == "Integration" && $CI_COMMIT_TAG =~ "/^$/"'
changes:
- bs-portal/bsp-project/bsp-core/trunk/**/*
- bs-portal/bsp-project/bsp-extern/trunk/**/*
- when: never
script:
- ...
The job only runs if there are changes on the “Integration” branch and the changes relate to the paths.
But when I configure a scheduler for the “Integration” branch, gitlab performs this job every time the scheduler is run. My expectation is that in the case of “Scheduler” the job will not be executed either.
What is the logic behind this?
I know there is:
if: '$ CI_PIPELINE_SOURCE == "schedule"'
but what is the idea behind that “scheduler” apparently has to be handled separately?
Thanks for Your time,
Torsten