Azure-pipelines-agent: YAML resources documentation is unclear

Created on 6 Jul 2018  路  2Comments  路  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:

resources:
- repo: self
  clean: true

This does not match what is described in https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-resources.md

Additional, it is unclear whether the "Get sources" part of the build is effected by this. The values in the UI don't change when clear is set to false for example. All in all, this part of the YAML build definition is difficult to understand.

Most helpful comment

I agree. We are currently working through changes around checkout and repositories.

In short, use the checkout options to control whether to clean

All 2 comments

I agree. We are currently working through changes around checkout and repositories.

In short, use the checkout options to control whether to clean

I've opened a work item internally to track changing the resources section from exported from the View Yaml link in the UI. We are working through changes for the resources section and the checkout step, in the server side repo (different repo).

The docs here are consistent with where we are going. The exported values from View Yaml is stale.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BrendanThompson picture BrendanThompson  路  4Comments

johncollinson2001 picture johncollinson2001  路  4Comments

tomasaschan picture tomasaschan  路  4Comments

simonvane picture simonvane  路  3Comments

AceHack picture AceHack  路  3Comments