I am creating a gitlab pipeline when files from specific folders are changes.
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 in the paths. The pipeline is not finishing
enter image description here
I’d like to prevent run pipelines when i am commiting any file that are not inside of the directory force-app/main/default/**/*
Isai Desales Santiago is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.