【发布时间】:2019-01-17 08:13:24
【问题描述】:
我有一个使用模板的 Azure 管道 (yaml),我正在尝试弄清楚如何设置被克隆的实际存储库的提取深度。
resources:
repositories:
- repository: templates
type: git
name: 'DevOps/CICD'
ref: refs/heads/develop
- repository: self # sic!
fetchDepth: 1
clean: true`
支持获取深度(vscode 扩展),但我似乎无法在上面找到任何广泛的documentation..
【问题讨论】:
-
只是一个评论,以防到目前为止它被遗漏,当你使用模板时,它不会检查你引用的 repo,它只是引用那些 yaml 文件。接受的答案提到进行实际结帐,这将使您可以访问您引用模板的其他非 yaml 文件,但有两种不同的东西????
标签: continuous-integration azure-devops azure-pipelines