The use of multiple trigger rules in a CI configuration file can lead to duplicate pipelines running. For example, if there is a trigger for every push and a trigger for merge request events, both triggers could be true and thus create two pipelines.
Try to keep the number of trigger sources down to one
planOnlySubset: script: echo "This job creates double pipelines!" rules: - changes: - $DOCKERFILES_DIR/* - if: $CI_PIPELINE_SOURCE == "push" - - if: $CI_PIPELINE_SOURCE == "merge_request_event"
Updated 10 months ago