Skip to content

Instantly share code, notes, and snippets.

@nieldw
Created January 3, 2019 16:44
Show Gist options
  • Save nieldw/a1b8e675a81209b02b54d1038f92507c to your computer and use it in GitHub Desktop.
Save nieldw/a1b8e675a81209b02b54d1038f92507c to your computer and use it in GitHub Desktop.
List Google Cloud Build triggers
#!/usr/bin/env bash
PROJECT_ID=$(gcloud config get-value core/project --quiet)
curl -s -XGET -H"Authorization: Bearer $(gcloud config config-helper --format='value(credential.access_token)')" https://cloudbuild.googleapis.com/v1/projects/${PROJECT_ID}/triggers | jq '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment