2 回答

TA貢獻(xiàn)1790條經(jīng)驗(yàn) 獲得超9個(gè)贊
經(jīng)過(guò)大量的試驗(yàn)和努力,我已經(jīng)能夠找到一個(gè)似乎可以完成項(xiàng)目這個(gè)階段的解決方法:
TL;博士
從我在 JS 構(gòu)建管道中指定的路徑下載構(gòu)建工件(在本例中downloadPath: '$(System.ArtifactsDirectory)')
將文件復(fù)制到 C# 項(xiàng)目中的指定文件路徑并覆蓋現(xiàn)有文件
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
現(xiàn)在我必須開(kāi)始努力從另一個(gè)管道觸發(fā)管道,但那是另一天和另一美元。繼續(xù)重新設(shè)計(jì)我們的部署流程。

TA貢獻(xiàn)1785條經(jīng)驗(yàn) 獲得超8個(gè)贊
我認(rèn)為您需要?jiǎng)?chuàng)建第三個(gè)管道,您可以在其中從 C# API 和 JS 應(yīng)用程序下載工件,然后您可以組織它們并部署到目標(biāo)服務(wù)器。這是一個(gè)例子:
添加回答
舉報(bào)