[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HHCGBSSCE70D1WGHTBWK6":3,"skill-same:01M78HHCGBSSCE70D1WGHTBWK6":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M78HHCGBSSCE70D1WGHTBWK6","azure-pipelines",null,"Use when validating Azure DevOps pipeline changes for the VS Code build. Covers queueing builds, checking build status, viewing logs, and iterating on pipeline YAML changes without waiting for full CI runs.","Qtrick\u002Fprebasecode","Qtrick","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F141445503?v=4","01M78HD7H7KZCCZK56G86RHXHG","David Fan","01M78HD7J9D6W89KHEGD4BWBVN",0,"MIT","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fazure-pipelines\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: azure-pipelines\ndescription: Use when validating Azure DevOps pipeline changes for the VS Code build. Covers queueing builds, checking build status, viewing logs, and iterating on pipeline YAML changes without waiting for full CI runs.\n---\n\n# Validating Azure Pipeline Changes\n\nWhen modifying Azure DevOps pipeline files (YAML files in `build\u002Fazure-pipelines\u002F`), you can validate changes locally using the Azure CLI before committing. This avoids the slow feedback loop of pushing changes, waiting for CI, and checking results.\n\n## Prerequisites\n\n1. **Check if Azure CLI is installed**:\n   ```bash\n   az --version\n   ```\n\n   If not installed, install it:\n   ```bash\n   # macOS\n   brew install azure-cli\n\n   # Windows (PowerShell as Administrator)\n   winget install Microsoft.AzureCLI\n\n   # Linux (Debian\u002FUbuntu)\n   curl -sL https:\u002F\u002Faka.ms\u002FInstallAzureCLIDeb | sudo bash\n   ```\n\n2. **Check if the DevOps extension is installed**:\n   ```bash\n   az extension show --name azure-devops\n   ```\n\n   If not installed, add it:\n   ```bash\n   az extension add --name azure-devops\n   ```\n\n3. **Authenticate**:\n   ```bash\n   az login\n   az devops configure --defaults organization=https:\u002F\u002Fdev.azure.com\u002Fmonacotools project=Monaco\n   ```\n\n## VS Code Main Build\n\nThe main VS Code build pipeline:\n- **Organization**: `monacotools`\n- **Project**: `Monaco`\n- **Definition ID**: `111`\n- **URL**: https:\u002F\u002Fdev.azure.com\u002Fmonacotools\u002FMonaco\u002F_build?definitionId=111\n\n## VS Code Insider Scheduled Builds\n\nTwo Insider builds run automatically on a scheduled basis:\n- **Morning build**: ~7:00 AM CET\n- **Evening build**: ~7:00 PM CET\n\nThese scheduled builds use the same pipeline definition (`111`) but run on the `main` branch to produce Insider releases.\n\n---\n\n## Queueing a Build\n\nUse the [queue command](.\u002Fazure-pipeline.ts) to queue a validation build:\n\n```bash\n# Queue a build on the current branch\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n\n# Queue with a specific source branch\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue --branch my-feature-branch\n\n# Queue with custom parameters\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue --parameter \"VSCODE_BUILD_WEB=false\" --parameter \"VSCODE_PUBLISH=false\"\n\n# Parameter value with spaces\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue --parameter \"VSCODE_BUILD_TYPE=Product Build\"\n```\n\n> **Important**: Before queueing a new build, cancel any previous builds on the same branch that you no longer need. This frees up build agents and reduces resource waste:\n> ```bash\n> # Find the build ID from status, then cancel it\n> node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\n> node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id \u003Cid>\n> node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n> ```\n\n### Script Options\n\n| Option | Description |\n|--------|-------------|\n| `--branch \u003Cname>` | Source branch to build (default: current git branch) |\n| `--definition \u003Cid>` | Pipeline definition ID (default: 111) |\n| `--parameter \u003Centry>` | Pipeline parameter in `KEY=value` format (repeatable); **use this when the value contains spaces** |\n| `--parameters \u003Clist>` | Space-separated parameters in `KEY=value KEY2=value2` format; values **must not** contain spaces |\n| `--dry-run` | Print the command without executing |\n\n### Product Build Queue Parameters (`build\u002Fazure-pipelines\u002Fproduct-build.yml`)\n\n| Name | Type | Default | Allowed Values | Description |\n|------|------|---------|----------------|-------------|\n| `VSCODE_QUALITY` | string | `insider` | `exploration`, `insider`, `stable` | Build quality channel |\n| `VSCODE_BUILD_TYPE` | string | `Product Build` | `Product`, `CI` | Build mode for Product vs CI |\n| `NPM_REGISTRY` | string | `https:\u002F\u002Fpkgs.dev.azure.com\u002Fmonacotools\u002FMonaco\u002F_packaging\u002Fvscode\u002Fnpm\u002Fregistry\u002F` | any URL | Custom npm registry |\n| `CARGO_REGISTRY` | string | `sparse+https:\u002F\u002Fpkgs.dev.azure.com\u002Fmonacotools\u002FMonaco\u002F_packaging\u002Fvscode\u002FCargo\u002Findex\u002F` | any URL | Custom Cargo registry |\n| `VSCODE_BUILD_WIN32` | boolean | `true` | `true`, `false` | Build Windows x64 |\n| `VSCODE_BUILD_WIN32_ARM64` | boolean | `true` | `true`, `false` | Build Windows arm64 |\n| `VSCODE_BUILD_LINUX` | boolean | `true` | `true`, `false` | Build Linux x64 |\n| `VSCODE_BUILD_LINUX_SNAP` | boolean | `true` | `true`, `false` | Build Linux x64 Snap |\n| `VSCODE_BUILD_LINUX_ARM64` | boolean | `true` | `true`, `false` | Build Linux arm64 |\n| `VSCODE_BUILD_LINUX_ARMHF` | boolean | `true` | `true`, `false` | Build Linux armhf |\n| `VSCODE_BUILD_ALPINE` | boolean | `true` | `true`, `false` | Build Alpine x64 |\n| `VSCODE_BUILD_ALPINE_ARM64` | boolean | `true` | `true`, `false` | Build Alpine arm64 |\n| `VSCODE_BUILD_MACOS` | boolean | `true` | `true`, `false` | Build macOS x64 |\n| `VSCODE_BUILD_MACOS_ARM64` | boolean | `true` | `true`, `false` | Build macOS arm64 |\n| `VSCODE_BUILD_MACOS_UNIVERSAL` | boolean | `true` | `true`, `false` | Build macOS universal (requires both macOS arches) |\n| `VSCODE_BUILD_WEB` | boolean | `true` | `true`, `false` | Build Web artifacts |\n| `VSCODE_PUBLISH` | boolean | `true` | `true`, `false` | Publish to builds.code.visualstudio.com |\n| `VSCODE_RELEASE` | boolean | `false` | `true`, `false` | Trigger release flow if successful |\n| `VSCODE_STEP_ON_IT` | boolean | `false` | `true`, `false` | Skip tests |\n| `VSCODE_USE_LEGACY_OSS_NOTICE` | boolean | `false` | `true`, `false` | Keep the legacy mixin ThirdPartyNotices.txt instead of the Component Governance notice |\n\nExample: run a quick CI-oriented validation with minimal publish\u002Frelease side effects:\n\n```bash\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue \\\n   --parameter \"VSCODE_BUILD_TYPE=CI Build\" \\\n   --parameter \"VSCODE_PUBLISH=false\" \\\n   --parameter \"VSCODE_RELEASE=false\"\n```\n\n---\n\n## Checking Build Status\n\nUse the [status command](.\u002Fazure-pipeline.ts) to monitor a running build:\n\n```bash\n# Get status of the most recent builds\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\n\n# Get overview of a specific build by ID\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456\n\n# Watch build status (refreshes every 30 seconds)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch\n\n# Watch with custom interval (60 seconds)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch 60\n```\n\n### Script Options\n\n| Option | Description |\n|--------|-------------|\n| `--build-id \u003Cid>` | Specific build ID (default: most recent on current branch) |\n| `--branch \u003Cname>` | Filter builds by branch name (shows last 20 builds for branch) |\n| `--reason \u003Creason>` | Filter builds by reason: `manual`, `individualCI`, `batchedCI`, `schedule`, `pullRequest` |\n| `--definition \u003Cid>` | Pipeline definition ID (default: 111) |\n| `--watch [seconds]` | Continuously poll status until build completes (default: 30s) |\n| `--download-log \u003Cid>` | Download a specific log to \u002Ftmp |\n| `--download-artifact \u003Cname>` | Download artifact to \u002Ftmp |\n| `--json` | Output raw JSON for programmatic consumption |\n\n---\n\n## Cancelling a Build\n\nUse the [cancel command](.\u002Fazure-pipeline.ts) to stop a running build:\n\n```bash\n# Cancel a build by ID (use status command to find IDs)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456\n\n# Dry run (show what would be cancelled)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456 --dry-run\n```\n\n### Script Options\n\n| Option | Description |\n|--------|-------------|\n| `--build-id \u003Cid>` | Build ID to cancel (required) |\n| `--definition \u003Cid>` | Pipeline definition ID (default: 111) |\n| `--dry-run` | Print what would be cancelled without executing |\n\n---\n\n## Testing Pipeline Changes\n\nWhen the user asks to **test changes in an Azure Pipelines build**, follow this workflow:\n\n1. **Queue a new build** on the current branch\n2. **Poll for completion** by periodically checking the build status until it finishes\n\n### Polling for Build Completion\n\nUse a shell loop with `sleep` to poll the build status. The `sleep` command works on all major operating systems:\n\n```bash\n# Queue the build and note the build ID from output (e.g., 123456)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n\n# Poll every 60 seconds until complete (works on macOS, Linux, and Windows with Git Bash\u002FWSL)\n# Replace \u003CBUILD_ID> with the actual build ID from the queue command\nwhile true; do\n  node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id \u003CBUILD_ID> --json 2>\u002Fdev\u002Fnull | grep -q '\"status\": \"completed\"' && break\n  sleep 60\ndone\n\n# Check final result\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id \u003CBUILD_ID>\n```\n\nAlternatively, use the built-in `--watch` flag which handles polling automatically:\n\n```bash\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n# Use the build ID returned by the queue command\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id \u003CBUILD_ID> --watch\n```\n\n> **Note**: The `--watch` flag polls every 30 seconds by default. Use `--watch 60` for a 60-second interval to reduce API calls.\n\n---\n\n## Common Workflows\n\n### 1. Quick Pipeline Validation\n\n```bash\n# Make your YAML changes, then:\ngit add -A && git commit -m \"test: pipeline changes\"\ngit push origin HEAD\n\n# Check for any previous builds on this branch and cancel if needed\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id \u003Cid>  # if there's an active build\n\n# Queue and watch the new build\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch\n```\n\n### 2. Investigate a Build\n\n```bash\n# Get overview of a build (shows stages, artifacts, and log IDs)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456\n\n# Download a specific log for deeper inspection\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456 --download-log 5\n\n# Download an artifact\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456 --download-artifact unsigned_vscode_cli_win32_x64_cli\n```\n\n### 3. Test with Modified Parameters\n\n```bash\n# Customize build matrix for quicker validation\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue \\\n   --parameter \"VSCODE_BUILD_TYPE=CI Build\" \\\n   --parameter \"VSCODE_BUILD_WEB=false\" \\\n   --parameter \"VSCODE_BUILD_ALPINE=false\" \\\n   --parameter \"VSCODE_BUILD_ALPINE_ARM64=false\" \\\n   --parameter \"VSCODE_PUBLISH=false\"\n```\n\n### 4. Cancel a Running Build\n\n```bash\n# First, find the build ID\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\n\n# Cancel a specific build by ID\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456\n\n# Dry run to see what would be cancelled\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456 --dry-run\n```\n\n### 5. Iterate on Pipeline Changes\n\nWhen iterating on pipeline YAML changes, always cancel obsolete builds before queueing new ones:\n\n```bash\n# Push new changes\ngit add -A && git commit --amend --no-edit\ngit push --force-with-lease origin HEAD\n\n# Find the outdated build ID and cancel it\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id \u003Cid>\n\n# Queue a fresh build and monitor\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch\n```\n\n---\n\n## Troubleshooting\n\n### Authentication Issues\n```bash\n# Re-authenticate\naz logout\naz login\n\n# Check current account\naz account show\n```\n\n### Extension Not Found\n```bash\naz extension add --name azure-devops --upgrade\n```\n\n### Rate Limiting\nIf you hit rate limits, add delays between API calls or use `--watch` with a longer interval.\n","# Validating Azure Pipeline Changes\n\nWhen modifying Azure DevOps pipeline files (YAML files in `build\u002Fazure-pipelines\u002F`), you can validate changes locally using the Azure CLI before committing. This avoids the slow feedback loop of pushing changes, waiting for CI, and checking results.\n\n## Prerequisites\n\n1. **Check if Azure CLI is installed**:\n   ```bash\n   az --version\n   ```\n\n   If not installed, install it:\n   ```bash\n   # macOS\n   brew install azure-cli\n\n   # Windows (PowerShell as Administrator)\n   winget install Microsoft.AzureCLI\n\n   # Linux (Debian\u002FUbuntu)\n   curl -sL https:\u002F\u002Faka.ms\u002FInstallAzureCLIDeb | sudo bash\n   ```\n\n2. **Check if the DevOps extension is installed**:\n   ```bash\n   az extension show --name azure-devops\n   ```\n\n   If not installed, add it:\n   ```bash\n   az extension add --name azure-devops\n   ```\n\n3. **Authenticate**:\n   ```bash\n   az login\n   az devops configure --defaults organization=https:\u002F\u002Fdev.azure.com\u002Fmonacotools project=Monaco\n   ```\n\n## VS Code Main Build\n\nThe main VS Code build pipeline:\n- **Organization**: `monacotools`\n- **Project**: `Monaco`\n- **Definition ID**: `111`\n- **URL**: https:\u002F\u002Fdev.azure.com\u002Fmonacotools\u002FMonaco\u002F_build?definitionId=111\n\n## VS Code Insider Scheduled Builds\n\nTwo Insider builds run automatically on a scheduled basis:\n- **Morning build**: ~7:00 AM CET\n- **Evening build**: ~7:00 PM CET\n\nThese scheduled builds use the same pipeline definition (`111`) but run on the `main` branch to produce Insider releases.\n\n---\n\n## Queueing a Build\n\nUse the [queue command](.\u002Fazure-pipeline.ts) to queue a validation build:\n\n```bash\n# Queue a build on the current branch\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n\n# Queue with a specific source branch\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue --branch my-feature-branch\n\n# Queue with custom parameters\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue --parameter \"VSCODE_BUILD_WEB=false\" --parameter \"VSCODE_PUBLISH=false\"\n\n# Parameter value with spaces\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue --parameter \"VSCODE_BUILD_TYPE=Product Build\"\n```\n\n> **Important**: Before queueing a new build, cancel any previous builds on the same branch that you no longer need. This frees up build agents and reduces resource waste:\n> ```bash\n> # Find the build ID from status, then cancel it\n> node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\n> node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id \u003Cid>\n> node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n> ```\n\n### Script Options\n\n| Option | Description |\n|--------|-------------|\n| `--branch \u003Cname>` | Source branch to build (default: current git branch) |\n| `--definition \u003Cid>` | Pipeline definition ID (default: 111) |\n| `--parameter \u003Centry>` | Pipeline parameter in `KEY=value` format (repeatable); **use this when the value contains spaces** |\n| `--parameters \u003Clist>` | Space-separated parameters in `KEY=value KEY2=value2` format; values **must not** contain spaces |\n| `--dry-run` | Print the command without executing |\n\n### Product Build Queue Parameters (`build\u002Fazure-pipelines\u002Fproduct-build.yml`)\n\n| Name | Type | Default | Allowed Values | Description |\n|------|------|---------|----------------|-------------|\n| `VSCODE_QUALITY` | string | `insider` | `exploration`, `insider`, `stable` | Build quality channel |\n| `VSCODE_BUILD_TYPE` | string | `Product Build` | `Product`, `CI` | Build mode for Product vs CI |\n| `NPM_REGISTRY` | string | `https:\u002F\u002Fpkgs.dev.azure.com\u002Fmonacotools\u002FMonaco\u002F_packaging\u002Fvscode\u002Fnpm\u002Fregistry\u002F` | any URL | Custom npm registry |\n| `CARGO_REGISTRY` | string | `sparse+https:\u002F\u002Fpkgs.dev.azure.com\u002Fmonacotools\u002FMonaco\u002F_packaging\u002Fvscode\u002FCargo\u002Findex\u002F` | any URL | Custom Cargo registry |\n| `VSCODE_BUILD_WIN32` | boolean | `true` | `true`, `false` | Build Windows x64 |\n| `VSCODE_BUILD_WIN32_ARM64` | boolean | `true` | `true`, `false` | Build Windows arm64 |\n| `VSCODE_BUILD_LINUX` | boolean | `true` | `true`, `false` | Build Linux x64 |\n| `VSCODE_BUILD_LINUX_SNAP` | boolean | `true` | `true`, `false` | Build Linux x64 Snap |\n| `VSCODE_BUILD_LINUX_ARM64` | boolean | `true` | `true`, `false` | Build Linux arm64 |\n| `VSCODE_BUILD_LINUX_ARMHF` | boolean | `true` | `true`, `false` | Build Linux armhf |\n| `VSCODE_BUILD_ALPINE` | boolean | `true` | `true`, `false` | Build Alpine x64 |\n| `VSCODE_BUILD_ALPINE_ARM64` | boolean | `true` | `true`, `false` | Build Alpine arm64 |\n| `VSCODE_BUILD_MACOS` | boolean | `true` | `true`, `false` | Build macOS x64 |\n| `VSCODE_BUILD_MACOS_ARM64` | boolean | `true` | `true`, `false` | Build macOS arm64 |\n| `VSCODE_BUILD_MACOS_UNIVERSAL` | boolean | `true` | `true`, `false` | Build macOS universal (requires both macOS arches) |\n| `VSCODE_BUILD_WEB` | boolean | `true` | `true`, `false` | Build Web artifacts |\n| `VSCODE_PUBLISH` | boolean | `true` | `true`, `false` | Publish to builds.code.visualstudio.com |\n| `VSCODE_RELEASE` | boolean | `false` | `true`, `false` | Trigger release flow if successful |\n| `VSCODE_STEP_ON_IT` | boolean | `false` | `true`, `false` | Skip tests |\n| `VSCODE_USE_LEGACY_OSS_NOTICE` | boolean | `false` | `true`, `false` | Keep the legacy mixin ThirdPartyNotices.txt instead of the Component Governance notice |\n\nExample: run a quick CI-oriented validation with minimal publish\u002Frelease side effects:\n\n```bash\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue \\\n   --parameter \"VSCODE_BUILD_TYPE=CI Build\" \\\n   --parameter \"VSCODE_PUBLISH=false\" \\\n   --parameter \"VSCODE_RELEASE=false\"\n```\n\n---\n\n## Checking Build Status\n\nUse the [status command](.\u002Fazure-pipeline.ts) to monitor a running build:\n\n```bash\n# Get status of the most recent builds\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\n\n# Get overview of a specific build by ID\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456\n\n# Watch build status (refreshes every 30 seconds)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch\n\n# Watch with custom interval (60 seconds)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch 60\n```\n\n### Script Options\n\n| Option | Description |\n|--------|-------------|\n| `--build-id \u003Cid>` | Specific build ID (default: most recent on current branch) |\n| `--branch \u003Cname>` | Filter builds by branch name (shows last 20 builds for branch) |\n| `--reason \u003Creason>` | Filter builds by reason: `manual`, `individualCI`, `batchedCI`, `schedule`, `pullRequest` |\n| `--definition \u003Cid>` | Pipeline definition ID (default: 111) |\n| `--watch [seconds]` | Continuously poll status until build completes (default: 30s) |\n| `--download-log \u003Cid>` | Download a specific log to \u002Ftmp |\n| `--download-artifact \u003Cname>` | Download artifact to \u002Ftmp |\n| `--json` | Output raw JSON for programmatic consumption |\n\n---\n\n## Cancelling a Build\n\nUse the [cancel command](.\u002Fazure-pipeline.ts) to stop a running build:\n\n```bash\n# Cancel a build by ID (use status command to find IDs)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456\n\n# Dry run (show what would be cancelled)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456 --dry-run\n```\n\n### Script Options\n\n| Option | Description |\n|--------|-------------|\n| `--build-id \u003Cid>` | Build ID to cancel (required) |\n| `--definition \u003Cid>` | Pipeline definition ID (default: 111) |\n| `--dry-run` | Print what would be cancelled without executing |\n\n---\n\n## Testing Pipeline Changes\n\nWhen the user asks to **test changes in an Azure Pipelines build**, follow this workflow:\n\n1. **Queue a new build** on the current branch\n2. **Poll for completion** by periodically checking the build status until it finishes\n\n### Polling for Build Completion\n\nUse a shell loop with `sleep` to poll the build status. The `sleep` command works on all major operating systems:\n\n```bash\n# Queue the build and note the build ID from output (e.g., 123456)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n\n# Poll every 60 seconds until complete (works on macOS, Linux, and Windows with Git Bash\u002FWSL)\n# Replace \u003CBUILD_ID> with the actual build ID from the queue command\nwhile true; do\n  node .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id \u003CBUILD_ID> --json 2>\u002Fdev\u002Fnull | grep -q '\"status\": \"completed\"' && break\n  sleep 60\ndone\n\n# Check final result\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id \u003CBUILD_ID>\n```\n\nAlternatively, use the built-in `--watch` flag which handles polling automatically:\n\n```bash\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\n# Use the build ID returned by the queue command\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id \u003CBUILD_ID> --watch\n```\n\n> **Note**: The `--watch` flag polls every 30 seconds by default. Use `--watch 60` for a 60-second interval to reduce API calls.\n\n---\n\n## Common Workflows\n\n### 1. Quick Pipeline Validation\n\n```bash\n# Make your YAML changes, then:\ngit add -A && git commit -m \"test: pipeline changes\"\ngit push origin HEAD\n\n# Check for any previous builds on this branch and cancel if needed\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id \u003Cid>  # if there's an active build\n\n# Queue and watch the new build\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch\n```\n\n### 2. Investigate a Build\n\n```bash\n# Get overview of a build (shows stages, artifacts, and log IDs)\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456\n\n# Download a specific log for deeper inspection\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456 --download-log 5\n\n# Download an artifact\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --build-id 123456 --download-artifact unsigned_vscode_cli_win32_x64_cli\n```\n\n### 3. Test with Modified Parameters\n\n```bash\n# Customize build matrix for quicker validation\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue \\\n   --parameter \"VSCODE_BUILD_TYPE=CI Build\" \\\n   --parameter \"VSCODE_BUILD_WEB=false\" \\\n   --parameter \"VSCODE_BUILD_ALPINE=false\" \\\n   --parameter \"VSCODE_BUILD_ALPINE_ARM64=false\" \\\n   --parameter \"VSCODE_PUBLISH=false\"\n```\n\n### 4. Cancel a Running Build\n\n```bash\n# First, find the build ID\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\n\n# Cancel a specific build by ID\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456\n\n# Dry run to see what would be cancelled\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id 123456 --dry-run\n```\n\n### 5. Iterate on Pipeline Changes\n\nWhen iterating on pipeline YAML changes, always cancel obsolete builds before queueing new ones:\n\n```bash\n# Push new changes\ngit add -A && git commit --amend --no-edit\ngit push --force-with-lease origin HEAD\n\n# Find the outdated build ID and cancel it\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts cancel --build-id \u003Cid>\n\n# Queue a fresh build and monitor\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts queue\nnode .github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts status --watch\n```\n\n---\n\n## Troubleshooting\n\n### Authentication Issues\n```bash\n# Re-authenticate\naz logout\naz login\n\n# Check current account\naz account show\n```\n\n### Extension Not Found\n```bash\naz extension add --name azure-devops --upgrade\n```\n\n### Rate Limiting\nIf you hit rate limits, add delays between API calls or use `--watch` with a longer interval.\n",{"name":5,"description":7},"main","a87007e75a0e5632a49ac593bd7df9f4e8d57d38",".github\u002Fskills\u002Fazure-pipelines","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode","https:\u002F\u002Fgithub.com\u002FQtrick","2026-09-18 02:39:35",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Qtrick\u002Fprebasecode --skill azure-pipelines",{"tool":36,"command":37},"bunx","bunx skills add Qtrick\u002Fprebasecode --skill azure-pipelines",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Qtrick\u002Fprebasecode --skill azure-pipelines","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fazure-pipelines\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"azure-pipeline.ts","SCRIPT","脚本",63771,"https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fazure-pipelines\u002Fazure-pipeline.ts",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M78HRHDZJD3512KSR0GZPJ57","review","Review skill with nested metadata","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-skill-meta\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M78HRG98D7PY73KG63XAK5H6","ui-ux-pro-max","UI UX Pro Max design guidance","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.opencode\u002Fskills\u002Fui-ux-pro-max\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M78HRFBCY0MBYVQ0HRXSV5GX","deploy","Deploy skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.codex\u002Fskills\u002Fdeploy\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M78HRE6JKXTMJN9DHCF487YD","interop","Interoperable Agent Skill for live smoke","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.agents\u002Fskills\u002Finterop\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M78HRCTZENSGRPZX2N148VDD","ship","Devin ship skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-extra-skills\u002F.devin\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M78HRBVY4KCF8ZRJ2M8RYFRD","lint","Codeium lint skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-extra-skills\u002F.codeium\u002Fskills\u002Flint\u002FSKILL.md",[],[]]