gcp-cloudbuild
Manage Google Cloud Build jobs and triggers. Use when the user wants to list Cloud Build triggers/jobs, view trigger details and configurations, check build history, monitor running builds, or start new builds. Handles authentication verification and project context. Triggers on phrases like "list cloud build jobs", "show build triggers", "build history", "running builds", "start build", "deploy with cloud build", "cloudbuild status".
Works with
--- name: gcp-cloudbuild description: Manage Google Cloud Build jobs and triggers. Use when the user wants to list Cloud Build triggers/jobs, view trigger details and configurations, check build history, monitor running builds, or start new builds. Handles authentication verification and project context. Triggers on phrases like "list cloud build jobs", "show build triggers", "build history", "running builds", "start build", "deploy with cloud build", "cloudbuild status". license: MIT --- # GCP Cloud Build Management Manage Cloud Build triggers, view build history, monitor running builds, and start new builds. ## Prerequisites Requires authenticated `gcloud` CLI and `jq`. Use the unified `gcp-build-tool` script for all operations. ## Quick Reference ```bash gcp-build-tool auth # Verify auth & show project gcp-build-tool list # List all triggers gcp-build-tool details <trigger> # Show trigger configuration gcp-build-tool history [trigger] # Show build history gcp-build-tool running # Show active builds gcp-build-tool start <trigger> [opts] # Start a build ``` ## Workflow ### 1. Always Verify Authentication First ```bash gcp-build-tool auth ``` **If authentication fails**, tell user to run: ```bash gcloud auth login gcloud config set project PROJECT_ID ``` **If targeting a different project**: User must authenticate to that project first. Tell user the command above. ### 2. Operations **List triggers:** ```bash gcp-build-tool list ``` **View trigger details** (name or ID): ```bash gcp-build-tool details my-deploy-trigger ``` **View build history:** ```bash gcp-build-tool history # All builds gcp-build-tool history my-deploy-trigger # Filter by trigger ``` **Check running builds:** ```bash gcp-build-tool running ``` **Start a build:** ```bash gcp-build-tool start my-trigger gcp-build-tool start my-trigger --branch main gcp-build-tool start my-trigger --sub _ENV=prod --sub _VERSION=1.2.3 gcp-build-tool start my-trigger --dry-run # Preview only ``` ## Error Handling | Error | User Action | |-------|-------------| | Not authenticated | `gcloud auth login` | | No project set | `gcloud config set project PROJECT_ID` | | API not enabled | `gcloud services enable cloudbuild.googleapis.com` | | Permission denied | Need `cloudbuild.builds.viewer` or `cloudbuild.builds.editor` role | ## Build Statuses `SUCCESS` ✅ | `FAILURE` ❌ | `WORKING` 🔄 | `QUEUED` ⏳ | `TIMEOUT` ⏱️ | `CANCELLED` 🚫
More Security skills
azure-cost
microsoft/azure-skills
Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
azure-messaging
microsoft/azure-skills
Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

