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

Trigger Pipelines on Pull Request

    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

      We use feature/topic branches that we then merge to a main branch. It would be useful to trigger a Pipelines build when a Pull Request is created. The alternative at the moment is to trigger builds on a branch name pattern. This however has some disadvantages:

      • Every commit on feature branches would trigger a build, we don't expect them to be all stable commits so this will just waste build minutes
      • We'd need to enforce a branch naming convention (which might be a good thing in general but would be really annoying if your branch is not building because you misspelled something)

      We've used PR triggers in other CI services and found them quite useful. I would suggest Pipelines having something like this:

      #!yml
      
      pipelines:
        branches:
          master
            - step:
        pull-request-into:
          master
             - step:
                 ...
      

      This way any PR into the specified branch will trigger a build when you create/update a PR

      Attachments

        Activity

          People

            Unassigned Unassigned
            4e9f6dc15fe6 adrian_hristov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: