Notify only specified branch not working

Hi,
There are a number of posts around the around specifying a branch with the notify feature some say this works with 2.0 others say it doesn’t.

I’m seeing the following reporting via the webhook url all jobs and branches

notify:
  webhooks:
    - url: http://example-webook-url-endpoint
  branches:
    only:
      - master

I have also tried using:

notify:
  webhooks:
    - url: http://example-webook-url-endpoint

experimental:
  notify:
    branches:
      only:
        - develop

Again this sends payloads to the endpoint for all branches.

So I can confirm this isn’t working for me, is this a bug? Or is this as intended?

Thanks

Hey there,

I just ran some experiments to confirm, but this does not work in 2.0

Both the notify and experimental keys are not valid in 2.0. The only real way to do something like would be to use the slack API manually and run a check to see which branch is being built.