Circle CI branch filter not working with branchnames containing forward slash

I am experiencing this issue in circle config.yaml version 2.1, where the branch filter does not seem to work for me.

Actual filter:

          branches:
            ignore:
              - production
              - tracking\stage

I have also tried the following variants:

          branches:
            ignore:
              - production
              - "tracking\stage"

and

          branches:
            ignore:
              - production
              - \tracking\/stage\

None of these work as the tests are still running on the ignored tracking/stage branch.

Why do you have a backward slash in the filter and not a forward slash?

In the code snippet “actual filter”, just change the backward slash for a forward slash. I tested and it works as expected :slight_smile:

branches:
  ignore:
    - production
    - tracking/stage

Thanks for the suggestion. I realize that it was not working because of different indentation… ie:

          branches:
            ignore:
              - production
              - tracking/stage

Should really have been:

          branches:
            ignore:
            - production
            - tracking/stage

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.