Publish Screenshots as Artifacts
Learn how to publish the automation screenshots using the PublishBuildArtifacts task.
We'll cover the following...
We'll cover the following...
Publishing the screenshots is very similar to publishing the logs.
- 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, the screenshots artifact is ...