Hello people,
I am creating a gitlab pipeline when files from specific folders are changing. My rule is
.sca_deploy_rules:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
changes:
paths:
- "force-app/main/default/**/*"
when: always
- when: never
When i creating a MR with any file that is not included in the path. The pipeline is not finishing and i am not able to merge it.
I’d like to prevent run pipelines when i am commiting any file that are not inside of the directory force-app/main/default/**/*
The configuration Pipelines must succeed is enabled. This configuration is expecting to be enable in case that pipeline fails because teh pipeline is validating code changes
