microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.19k stars 926 forks source link

unexpected-property first should be a Task #525

Closed vishnu-anil closed 3 years ago

vishnu-anil commented 3 years ago

I am following the documentation to create a pipeline that runs a specific task based on the parameter i provide.

By simply adding the sample pipeline given here throws an error in the editor: "unexpected-property-first should be a task">>> https://docs.microsoft.com/en-us/azure/devops/pipelines/process/runtime-parameters?view=azure-devops&tabs=script

This is the same for conditional execution of job as well. Can someone direct me on what wrong am i doing here?

`parameters:

trigger: none

jobs:

image

stale[bot] commented 3 years ago

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.

andy-mishechkin commented 3 years ago

Hello, @vishnu-anil I've tried to reproduce you YAML, and all looks good: image I suggest, that you have somewhere wrong formatting - may you check your YAML once again. For example, if I'll add one more space before - ${{ if eq(parameters.test, true) }}: - I'll get the invalid YAML structure image

Thank you!

andy-mishechkin commented 3 years ago

Hello, @vishnu-anil Do you have any updates ?

andy-mishechkin commented 3 years ago

Closed, because no activity in last 5 days. @vishnu-anil , please feel free to reopen, if you will have new updates.