尽管 "checkout: self" 总是跳过存储库的同步源

Sync source for repository is always skipped despite "checkout: self"

我们的新回购显示 'Skip sync source for repository' 即使使用如下设置步骤的 YAML:-checkout: self

症状: Skip sync source for repository

这是一个需要 Maven 工作的 Java/SCALA 仓库,它需要 pom.xml 个文件同步到构建代理。

因此,当我更新 YAML 文件时,我声明了一个 checkout: self 选项。

YAML 文件在这里: YAML with checkout: self

但还是显示Skip sync source for repository。如何让源同步到我的 Azure 构建代理?

How can I get sources to be synced to my Azure build agents?

您需要检查设置:不同步 Yaml -> Triggers -> YAML -> Get Sources.

中的来源

您可以禁用不同步源选项。然后它将获取要同步的源。