...

/

Publish Screenshots as Artifacts

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.

- 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, the screenshots artifact is ...