Skip to content

Instantly share code, notes, and snippets.

@momota10s
Created September 22, 2021 05:02
Show Gist options
  • Save momota10s/0cc9f5e09c6b51ad54d215024fd8bbed to your computer and use it in GitHub Desktop.
Save momota10s/0cc9f5e09c6b51ad54d215024fd8bbed to your computer and use it in GitHub Desktop.
from googleapiclient import discovery
PROJECT_ID = "your-project"
build_id = "youru-build-id"
cloudbuild = discovery.build("cloudbuild", "v1", cache_discovery=False)
request = cloudbuild.projects().builds().get(id=build_id, projectId=PROJECT_ID)
res = request.execute()
print(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment