Hi, we have this plugin configured to be executed when we push changes to master branch only.
Sometimes (once, twice per week) this pipeline is executed automatically when we push changes into other branches (on same repository). We cannot find any behaviour to reproduce it... It's happens only few times.
This behaviour started few weeks ago automatically. We updated Jenkins and plugins to the last version and it's still happens.
We enabled webhooks logs at Bitbucket and we didn't see troubles there... The payload seams correct (contains branch name, and commit hash are correct to the related branch)
Also we enable more verbose logs in Jenkins, this is what we see:
Note: "backend-deploy" is our master branch pipeline
This is our pipeline configuration
Note: When we do a "merge to master" manually from our branches this jobs is executed correctly. As I said before, "sometimes" runs automatically when push changes into other branches (non-master).
These are screenshots from Bitbucket webhooks history