2 回答

TA贡献1790条经验 获得超9个赞
经过大量的试验和努力,我已经能够找到一个似乎可以完成项目这个阶段的解决方法:
TL;博士
从我在 JS 构建管道中指定的路径下载构建工件(在本例中downloadPath: '$(System.ArtifactsDirectory)')
将文件复制到 C# 项目中的指定文件路径并覆盖现有文件
steps:
#Download JS app from published JS Build Pipe
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'specific'
project: '(project identifier here)'
pipeline: '7'
buildVersionToDownload: 'latest'
downloadType: 'specific'
downloadPath: '$(System.ArtifactsDirectory)'
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.ArtifactsDirectory)\folder-name-where-item-was-saved'
Contents: '**'
TargetFolder: '$(Build.SourcesDirectory)\directory\where\I\want\built\file'
OverWrite: true
现在我必须开始努力从另一个管道触发管道,但那是另一天和另一美元。继续重新设计我们的部署流程。
添加回答
举报