我有一个 azure devops 多阶段管道,它需要 1 个阶段将文件从另一个存储库复制到$(build.artifactstagingdirectory)
例如我的 YAML 看起来像
trigger:
- master
resources:
- repo: self
variables:
tag: '$(Build.BuildId)'
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
...
- stage: Build
... define other resource/repository ...
- task: CopyFiles@2
inputs:
SourceFolder: 'k8s'
Contents: '**'
TargetFolder: '$(build.artifactstagingdirectory)'
此管道连接到存储库,该存储库可能由repo: self
. 所以问题是,我可以为特定阶段更改此存储库吗?