...

/

Publish Screenshots as Artifacts

Publish Screenshots as Artifacts

Learn how to publish the automation screenshots using the PublishBuildArtifacts task.

We'll cover the following...

Publishing the screenshots is very similar to publishing the logs.

Press + to interact
- task: PublishBuildArtifacts@1
displayName: 'Publish Screenshots as Artifact'
inputs:
PathtoPublish: $(System.DefaultWorkingDirectory)/target/screenshots
ArtifactName: screenshots

The PathtoPublish path ends now with the screenshots folder. The name of the artifact is screenshots.

After executing the pipeline, ...