在尝试使用Publish Artifact任务执行任何vNext构建时,我们最终得到以下错误
##[error]Unable to associate artifact with resource at location:[location]
Run Code Online (Sandbox Code Playgroud)
示例日志输出
1
2016-01-21T19:29:49.9838278Z Executing the powershell script: D:\Agent\tasks\PublishBuildArtifacts\1.0.4\PublishBuildArtifacts.ps1
2
2016-01-21T19:29:50.1713333Z Preparing artifact content in staging folder D:\Agent\_work\1\a...
3
2016-01-21T19:29:50.2338323Z Copying all files from D:\Agent\_work\1\s\ASC\ASC-Dev\CSDChangeControlDispatcher to D:\Agent\_work\1\a\CSDChangeControlDispatcher\CSDChangeControlDispatcher
4
2016-01-21T19:29:50.4838343Z Copying all files from D:\Agent\_work\1\s\ASC\ASC-Dev\PrecompiledWeb\CSDChangeControlDispatcher to D:\Agent\_work\1\a\CSDChangeControlDispatcher\PrecompiledWeb\CSDChangeControlDispatcher
5
2016-01-21T19:29:50.5150903Z Copying artifact content to D:\BuildDrop\ASC Dev vNext\20160121.7...
6
2016-01-21T19:29:50.9369728Z Start: AssociateArtifact
7
2016-01-21T19:29:50.9369728Z ##[error]Unable to associate artifact with resource at location:D:\BuildDrop\ASC Dev vNext\20160121.7.
8
2016-01-21T19:29:50.9369728Z End: AssociateArtifact
Run Code Online (Sandbox Code Playgroud)
问题是您将"发布工件路径"指定为"D:\ BuildDrop\ASC Dev vNext\20160121.7".
您应该在Path项目中使用"\\ my\share"而不是绝对路径.
| 归档时间: |
|
| 查看次数: |
3043 次 |
| 最近记录: |