MicrosoftDocs / azure-devops-docs

This repo is the home of the official Azure DevOps documentation for Microsoft. GitHub Issues filed in this repository should be for problems with the documentation.
https://docs.microsoft.com/azure/devops/
Creative Commons Attribution 4.0 International
819 stars 2.44k forks source link

Update Pipeline Caching doc to clarify s needed for checkout: self. #14001

Closed nickshanks347 closed 2 months ago

nickshanks347 commented 3 months ago

When running a pipeline, I believe checkout: self is ran by default even if not explicitly written in the pipeline. The docs stated that the .yarn folder variable should be equal to $(Pipeline.Workspace)/.yarn, this isn't correct as checkout: self checks out to $(Pipeline.Workspace)/s, so the variable should be set to $(Pipeline.Workspace)/s/.yarn.

Hopefully this fixes issue https://github.com/microsoft/azure-pipelines-tasks/issues/12892 so people are not unsure in the future.

Maybe an additional point should be added about how if not using checkout: self (i.e. using checkout: my-repo) then the variable should be $(Pipeline.Workspace)/my-repo

prmerger-automator[bot] commented 3 months ago

@nickshanks347 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Jak-MS commented 3 months ago

@ramiMSFT

label:"aq-pr-triaged"

@MicrosoftDocs/public-repo-pr-review-team

steved0x commented 2 months ago

sign-off

prmerger-automator[bot] commented 2 months ago

Invalid command: '#sign-off'. Only the assigned author of one or more file in this PR can sign off. @ramiMSFT

prmerger-automator[bot] commented 2 months ago

@nickshanks347 : Thanks for your contribution! The author(s) have been notified to review your proposed change.