Publish Screenshots as Artifacts
Learn how to publish the automation screenshots using the PublishBuildArtifacts task.
Publishing the screenshots is very similar to publishing the logs.
Press + to interact
- task: PublishBuildArtifacts@1displayName: 'Publish Screenshots as Artifact'inputs:PathtoPublish: $(System.DefaultWorkingDirectory)/target/screenshotsArtifactName: screenshots
The PathtoPublish
path ends now with the screenshots
folder. The name of the artifact is screenshots
.
After executing the pipeline, ...