1
votes

I have a Release plan in Visual Studio Team Services Online that runs a small UI test (using Selenium) after web app deployment to ensure the app is functioning correctly.

I would like to store screenshots from this Release as artifacts so that they are accessible once the release completes (mainly in case the tests fail).

Is this possible using VSTS?

I've tried using the Copy Publish Artifact task as part of my Release plan but that just produces a few errors like System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'StagingFolder' because it is null.

1

1 Answers

1
votes

You can use "##vso[task.uploadfile]" command to do this.

View and download attachments associated with releases

Would you like to upload additional logs or diagnostics or images when running tasks in a release? This feature enables users to upload additional files during deployments. To upload a new file, use the following agent command in your script:

Write-host "##vso[task.uploadfile]"

The file is then available as part of the release logs. When you download all the logs associated with the release, you will be able to retrieve this file as well.