Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17508

Trigger pipeline on branch or tag deletion

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Please enable the pipeline triggering mechanism for deletion of tags and branches in Bitbucket cloud.

      The best CI/CD pipeline's function isn't just build and deploy, but must do cleanup when the testing is done.

      You folks at Bitbucket have done such a great job with it and its pipeline, we have migrated from Github+Jenkins/CircleCI to BitBucket cloud. While we don't want all that junks comes with programmability/pluggability of Jenkins, we still do need some essential functions.

      While I can create a nightly job to check and compare the existence of branch and tags and force the cleanup, that's not ideal when the cloud vendor charges by hours nor security reason.

      Something like this:

      branches:
      feature/*;

      • step:
        name: Deprovision from Test Env
        trigger: branch-deleted
        script:
      • echo "deleting ...."

              Unassigned Unassigned
              f28ff776a3fc Seongyong Kim
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: