Reputation: 435
I cannot use the Publish Build Artifacts Task in a release-definition, I'm getting the following error:
So my question is:
Why I want to achieve this:
Thanks for your help.
Upvotes: 0
Views: 804
Reputation: 29976
There is no container for artifacts in Release Management, so you cannot use that task in Release.
As a workaround, you can use ##vso[task.uploadfile]local file path
command in VSTS Task Logging Command to upload the file.
Upload user interested file as additional log information to the current timeline record. The file shall be available for download along with task logs.
To do this, add a powershell task in your release definition like below:
When you want to use the file, download the release logs as zip, the file will be included in it.
Upvotes: 3