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
GET
requests 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 Native
requests.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 Auth
is 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-service
forDomain Service
, andQodex-cloud-api
forCloud API
.In the test script of the newly created
GET
build statues request, update theowners
field on line23
/27
to indicate recipients for individual build failure notifications. For Buildkite based builds, ensure that the appropriate:pipeline
(in the url) andbranch
query 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
POST
requests at the end. Please ensure that alphabetical order among service build statusGET
requests is maintained. The two SlackPOST
requests 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}}