microsoft / azure-pipelines-vscode

VS Code extension for working with Azure Pipelines YAML files
MIT License
165 stars 106 forks source link

Variable only templates reporting missing property "stages" #530

Open DigiBanks99 opened 1 year ago

DigiBanks99 commented 1 year ago

If I use a variable-only template, I get a warning saying Missing property "stages". An example of a variable only template that produces this result:


variables:
  - group: 'my-variable-group'
  - name: 'myVariable'
    value: 'InitialValue'
``

Extensions version: `v1.208.0`
jfranki commented 1 month ago

I have this issue too. Extension version v1.247.2.

A more simple example:

variables:
  - name: dotnetSdkVersion
    value: 8.x
winstliu commented 4 weeks ago

Note to self. This is officially documented at https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#specify-variables and https://learn.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops&pivots=templates-extends#extend-from-a-template-and-use-an-include-template-with-variables. This will require a change on the ADO schema side.