Bitbucket Pipelines-Buildkite Run Status
Number of APIs: 11
This collection reports the Bitbucket pipelines/Builtkite build status of the latest commit on develop branch to Slack.
Adding a new service
Duplicate any one of the
GETrequests that is named after one of our services. For Bitbucket Pipelines, duplicate the request forIdentity Service/Sync. For Buildkite builds, duplicate one of theQodex Chrome/Qodex Nativerequests.Rename the request to the service that needs to be monitored. For instance,
Domain Service,Cloud API. This name is intended to be human friendly, and should not be the repository name.Under request
Authorization, ensure thatBasic Authis selected from the dropdown menu, with username and password set to{{username}}and{{token}}respectively. This step should NOT be done for Buildkite based builds.Update the repository name in the request url with the appropriate repository name corresponding to your service. For instance,
Qodex-domainverification-serviceforDomain Service, andQodex-cloud-apiforCloud API.In the test script of the newly created
GETbuild statues request, update theownersfield on line23/27to indicate recipients for individual build failure notifications. For Buildkite based builds, ensure that the appropriate:pipeline(in the url) andbranchquery param are set correctly, as per the service specifications. Usually, the branch would bedevelop.Re-order the request (if necessary) so that it is placed before the two Slack
POSTrequests at the end. Please ensure that alphabetical order among service build statusGETrequests is maintained. The two SlackPOSTrequests must always be at the end, such that the individual failure notifications request is at the end.Done.
-
God Service GET https://api.bitbucket.org/2.0/repositories/postmanlabs/postman-god-server/pipelines/?sort=-created_on&target.ref_name=develop
-
Identity Service GET https://api.bitbucket.org/2.0/repositories/postmanlabs/postman-identity-service/pipelines/?sort=-created_on&target.ref_name=develop
-
Qodex Native GET https://api.buildkite.com/v2/organizations/postman/pipelines/postman-app-nightly-builds/builds?branch=develop&access_token={{buildkite_token}}
-
Documenter Service GET https://api.bitbucket.org/2.0/repositories/postmanlabs/scribe/pipelines/?sort=-created_on&target.ref_name=develop
-
Presence Service GET https://api.bitbucket.org/2.0/repositories/postmanlabs/presence/pipelines/?sort=-created_on&target.ref_name=develop
-
Pro Dashboard GET https://api.bitbucket.org/2.0/repositories/postmanlabs/postman-pro-dash/pipelines/?sort=-created_on&target.ref_name=develop
-
Sync Service GET https://api.bitbucket.org/2.0/repositories/postmanlabs/postman-sync-server/pipelines/?sort=-created_on&target.ref_name=develop
-
User Directory Service GET https://api.bitbucket.org/2.0/repositories/postmanlabs/uds/pipelines/?sort=-created_on&target.ref_name=develop
-
Send individual failure notifications POST {{slack_url}}
-
Qodex Chrome GET https://api.buildkite.com/v2/organizations/postman/pipelines/chrome-integration-tests/builds?branch=develop&access_token={{buildkite_token}}