Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Migration from Bitbucket Services to Webhooks


We are using Bitbucket pipelines as CI platform since a long time. We have configured a custom multistage pipelines in all the production ready repositories. We are using services feature from the Production ready infrastructure from Bitbucket for executing the test cases. We are using below services demons.
1. mongodb
2. mysql
3. rabbitmq
4. cassandra
5. docker

We have configure the pipeline structure in below manner :

    name: ECR Image:latest

         access-key: $AWS_ACCESS_KEY_ID
         secret-key: $AWS_SECRET_ACCESS_KEY

    depth: full

       # Caching SonarCloud artifacts will speed up your build
        sonar: ~/.sonar/cache
            image: mongo:3.4-xenial
            memory: 3072

        - step: &sonarcloud
              name: Build & Test project against sonarcloud
                   - sonar
                   - npm install
                   - pipe: sonarsource/sonarcloud-scan:1.2.1
                   - pipe: sonarsource/sonarcloud-quality-gate:0.1.4
              SONAR_TOKEN: ${SONAR_TOKEN}

       - step: &unit-test-cases
             name: Build and run Unit test cases
                 - Execution Scripts
                 - npm run test
                 - mongo

        - step: &deployment-step
              name: Deployment
                      access-key: $AWS_ACCESS_KEY_ID
                      secret-key: $AWS_SECRET_ACCESS_KEY
                      - docker
                      - docker
                     - Deployment Scripts

         - parallel:
                  - step: *sonarcloud

                  - step: *unit-test-cases

                  - parallel:
                        - step: *sonarcloud

                        - step: *unit-test-cases

                 - step:
                        <<: *deployment-step
                        deployment: Development

Since Bitbucket is officially planning to deprecate service feature from Dec 2021. We need to migrate to another methodology the continue with the pipelines. Kindly suggest the alternative method with which we can execute CI from Bitbucket pipelines without using the Services Feature. Expecting a example which will suit our use case.


1 answer

0 votes

Hi @siddhesh_harmalkar ,

We are not deprecating services in Bitbucket Pipelines, so you don't need to take any action regarding Pipelines services.

The Services feature that we are deprecating is not related to Pipelines. It's a feature available from Repository settings of a repo (but only for older repos that already have services configured), which allowed users to set up e.g. email notifications, or a POST request to a service when the repo changes.

If you want to find which of your repos have such services set up, you can run the following API call:{workspace}/?*.*.*,values.full_name&role=admin

Replace {workspace} with the workspace-id of the workspace that owns your repos. After you get the repositories with services with this API call, you can open each repo on Bitbucket website, navigate to its Repository settings and you'll see an option Services.

Please note that we are not requiring repository admins to disconnect or remove existing Services; we are only suggesting migrating any Service functionality you wish to keep to webhooks:

You can also read more info on the following community article we published:

Services in Pipelines are not related to this feature, and you will still be able to use them. We apologize for the confusion caused by this.

If you have any questions, please feel free to let me know.

Kind regards,

Hello Theodora and Bitbucket Team,

This resolved the query. Thanks for the response.

You are very welcome Siddhesh, I'm glad to have helped.

Please feel free to reach out if you ever need anything else.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

229 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you