azure pipelines

{{tag>Azure_DevOps}}

Snippets for quickly getting a tree of some path:

Look at artifact staging

```
- powershell: |
    Get-ChildItem -Path $(Build.ArtifactStagingDirectory) -Recurse | Select-Object -ExpandProperty FullName
displayName: "Diagnostic: Tree of artifact staging dir."
condition: succeededOrFailed()
```

Or everything
```
- powershell: |
    Get-ChildItem -Path $(Pipeline.Workspace) -Recurse | Select-Object -ExpandProperty FullName
displayName: "Diagnostic: Tree of pipeline workspace"
condition: succeededOrFailed()
```


Remember to add `condition: succeededOrFailed()` to the step that publishes the artifact, too.


Revision #1
Created 2026-04-27 07:32:20 UTC by Viv Lim
Updated 2026-04-27 07:32:27 UTC by Viv Lim