microsoft / azure-pipelines-agent

Azure Pipelines Agent 🚀
MIT License
1.72k stars 864 forks source link

Exported YAML not valid - "Unexpected value 'condition'" #1673

Closed simonvane closed 5 years ago

simonvane commented 6 years ago

Have you tried trouble shooting?

yes

Agent Version and Platform

Hosted VS2017

VSTS Type and Version

VisualStudio.com

What's not working?

When build definition is exported using "View YAML" the following is included:

queue:
  name: Hosted VS2017
  condition: succeeded()
  demands: 
  - Cmd
  - DotNetFramework
  - vstest
  - java

If I try to create a build using the exported yaml this results in the following error: "Unexpected value 'condition'"

Removing "condition: succeeded()" resolves the problem with no ill effects.

Exported YAML should be valid.

TingluoHuang commented 6 years ago

@MireilleHanna is working on a fix for this.

ericsciple commented 6 years ago

@mireillehanna this in master now, correct? and will roll out with the next sprint deployment? let's close the issue here if so.

MireilleHanna commented 6 years ago

yeah that's correct, it will go out with this sprint

TingluoHuang commented 5 years ago

i thinks this has been fix.