I've got my yaml to run my build (which is a fake script), and I want to publish various outputs from the build script as an artifact.
I've half got it working, but I can't work out quite how to get some specific folder to be output.
- task: PublishPipelineArtifact@1
displayName: Publish Report
inputs:
pathToPublish: $(System.DefaultWorkingDirectory)/s/ReportProject/bin/Release/netcoreapp3.1
artifactName: MyReport
what it actually seems to do is take some arbritrary folder (which is the name of my pipeline with the below as subfolders)
subfolders
TestResults
a
b
s
yes, my app is in there, but so is everything, very odd.
I change the path...it publishes the same thing i.e. everything!