bitbucket-push-and-pull-request-plugin icon indicating copy to clipboard operation
bitbucket-push-and-pull-request-plugin copied to clipboard

Avoid Triggering from Deleted Branches

Open juanmacoo opened this issue 3 years ago • 4 comments

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"
    }
  ]

juanmacoo avatar Nov 08 '21 08:11 juanmacoo