bitbucket-push-and-pull-request-plugin
bitbucket-push-and-pull-request-plugin copied to clipboard
Avoid Triggering from Deleted Branches
On the push event it would be nice to have a checkbox to avoid running from deleted branches.
This happens when you want to run the pipeline from all branches (Branch Specifier: **), and an event comes in with ref_change such as
"changes":[
{
"ref":{
"id":"refs/heads/test",
"displayId":"test",
"type":"BRANCH"
},
"refId":"refs/heads/master",
"fromHash":"000000000000000000000000000000000",
"toHash":"178864a7d521b6f5e720b386b2c2b0ef8563e0dc",
"type":"DELETE"
}
]