You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The checkout task cannot make use of the $(Build.SourcesDirectory) variable in its path argument because it is a "rooted" path. This requires working around the issue by knowing what the SourcesDirectory will resolve to, and what working directory the checkout task will run in (especially since it doesn't take a workingDirectory argument).
If the reason for blocking rooted paths is concern the task will create files outside of its pipeline workspace, allowing an exception to this error when the argument to path is within $(Pipeline.Workspace) would be a good resolution.
Hi @d5han at the moment it is by design - checkout task supports only relative paths and chooses root directory by itself - depending on set of repositories used/build definition/project collection (see docs for more details).
We also have another enhancement in a backlog and PRs on review which add capability to re-use repositories outside of working directory - feel free to track progress around these changes here.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Required Information
Question, Bug, or Feature?
Type: bug
Enter Task Name: checkout
Issue Description
The
checkout
task cannot make use of the$(Build.SourcesDirectory)
variable in itspath
argument because it is a "rooted" path. This requires working around the issue by knowing what the SourcesDirectory will resolve to, and what working directory thecheckout
task will run in (especially since it doesn't take aworkingDirectory
argument).If the reason for blocking rooted paths is concern the task will create files outside of its pipeline workspace, allowing an exception to this error when the argument to
path
is within$(Pipeline.Workspace)
would be a good resolution.Example:
Results in:
The text was updated successfully, but these errors were encountered: