Skip to content

This Code should be used as a GCP Cloud Function, which is triggered by the Pub/Sub topic cloud-builds. Whenever Cloud Build runs, the status will be pushed to Bitbucket.

License

Notifications You must be signed in to change notification settings

dgallegos/gcp-cloud-build-function-bitbucket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Build Status to Bitbucket

picture picture

Keywords

Google Cloud Platform (GCP), Cloud Build, Pub/Sub, Cloud Functions, Bitbucket

Description

This Code should be used as a GCP Cloud Function,
which is triggered by the Pub/Sub (topic cloud-builds).
When ever Cloud Build runs, the status will be pushed to Bitbucket.

Setup

  • Setup a GCP Cloud Build Trigger for your Bitbucket repository
  • Create a GCP Cloud Functions Function
    • Set the Pub/Sub topic cloud-builds as trigger
    • Set Node.js 8 as runtime
    • Set Function to execute to processPubSubMessage
    • Define the BITBUCKET_USER environment variable (under More)
    • Define the BITBUCKET_APP_PASS environment variable (under More)

About

This Code should be used as a GCP Cloud Function, which is triggered by the Pub/Sub topic cloud-builds. Whenever Cloud Build runs, the status will be pushed to Bitbucket.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%