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.
No comments to display
No comments to display