Created
January 3, 2019 16:54
-
-
Save nieldw/aaa3c8f20cd2e2205a2e770ae93cf7c7 to your computer and use it in GitHub Desktop.
Get Google Cloud Build trigger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PROJECT_ID=$(gcloud config get-value core/project --quiet) | |
TRIGGER_ID=$1 | |
curl -s -XGET -H"Authorization: Bearer $(gcloud config config-helper --format='value(credential.access_token)')" https://cloudbuild.googleapis.com/v1/projects/${PROJECT_ID}/triggers/${TRIGGER_ID} | jq '.' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment