Azure-pipelines-agent: Exported YAML not valid - "Unexpected value 'condition'"

Created on 6 Jul 2018  路  4Comments  路  Source: microsoft/azure-pipelines-agent

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.

Most helpful comment

@MireilleHanna is working on a fix for this.

All 4 comments

@MireilleHanna is working on a fix for this.

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

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

i thinks this has been fix.

Was this page helpful?
0 / 5 - 0 ratings