Complete azure-pipelines toolkit with generation and validation capabilities
97
97%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
A DevOps engineer has set up a modular Azure Pipelines configuration with a main entry point that delegates build and deploy stages to YAML templates. The main file passes validation on its own, but the pipeline fails at queue time with errors in the template files. The engineer realizes they only validated the entry point.
Validate both the main pipeline file and the referenced template below. Identify all errors in the template files (not just the entry point), explain why validating only the entry point is insufficient, and produce corrected versions of all files.
Produce:
azure-pipelines.yml (main entry point)templates/build-stage.ymltemplate-validation-report.md that: (1) lists all errors found across all files, (2) notes which file each error is in, and (3) explains why the entry-point-only validation approach would have missed these issuesThe following files are provided as input.
=============== FILE: inputs/azure-pipelines.yml =============== trigger: branches: include: - main
pool: vmImage: ubuntu-latest
stages:
template: templates/build-stage.yml parameters: nodeVersion: '18.x' runTests: true
stage: Deploy dependsOn: Build jobs:
=============== FILE: inputs/templates/build-stage.yml =============== parameters:
stages: