使用定义如下的CI触发器和resources.pipelines执行deployment作业时
resources:
pipelines:
- pipeline: thumbnailGenerator
project: myServices
source: thumbnail-generator CI
trigger:
branches:
include:
- masterdeployment任务从master下载管道的最新版本(可能是PR),而不是最后一个版本。有没有办法让它在构建CI时只下载特定的分支?
我还没有探索过它,但我认为基于这种行为,它总是会为所有的管道做最新的构建。
发布于 2020-05-29 09:47:34
在管道对象上有一个名为branch的属性
resources:
pipelines:
- pipeline: thumbnailGenerator
project: myServices
source: thumbnail-generator CI
branch: master
trigger:
branches:
include:
- masterhttps://stackoverflow.com/questions/62076808
复制相似问题