Running pipeline in branch and prefix

hi there,

so recently, i want to run pipeline when commit or mr only in all branch development and using prefix, example

  • development/feat-1
  • development/feat-1-2
  • development/preprod

i already try this

if: $CI_COMMIT_BRANCH == ‘^development’

but not working at all, anything else my friends ?

GitLab documentation provides an example of how to match using a regular expression: CI/CD YAML syntax reference - rules:if | GitLab

Try if: $CI_COMMIT_BRANCH =~ /^development/