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

Custom pipelines for only specific branches

    XMLWordPrintable

Details

    • 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.

    Description

      As a pipeline user I would like that I am able to run specific custom pipelines only on specific branches

      that could be something like:

      #!python
      
      pipelines:
        custom:
          master <-- branch name
             deploy-to-prod:
                - step:
      

      Workaround
      Use a script to check the branch version:

      - if [ "$BITBUCKET_BRANCH" != main ]; then echo "Release pipeline can only be triggered on main branch" && exit 1; fi
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            7a6c6d18756e Akrem Abayed
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: