Phabricator + Jenkins:关于执行弧形差异时如何获取整个工作空间的任何想法?

问题描述 投票:-1回答:1

我正在使用plugin from Jenkins与Phabricator集成。在集成过程中,一切都可以正常运行,但是当执行arc diff时,在Jenkins作业中唯一接收到的文件就是arc diff编辑或创建的文件。创建微服务和编辑可能会影响其他微服务的文件时,这是一个问题。

关于如何从存储库(也托管在Phabricator中)获取整个工作区的想法,而不是仅对diff文件进行测试?

我在插件上创建了一个问题,这里是链接:

https://github.com/uber/phabricator-jenkins-plugin/issues/334

jenkins phabricator
1个回答
0
投票

使用git plugin和存储库URL非常简单:添加了the URL of the staging area(在我的情况下与存储库相同)和staging area凭据(与git相同)。唯一的技巧是指出我们需要测试哪个username/password。由于tag每个phabricator staging areas使用两个标签(diff带有diff的基本代码,phabricator/base/${DIFF_ID}带有应用了diff的整个代码),所以我使用以下设置:

phabricator/diff/${DIFF_ID}

结果,Build tag instead of branch将使用差异来构建整个项目的代码。

有关集成和所需变量的更多信息,可以在这里找到:git plugin

© www.soinside.com 2019 - 2024. All rights reserved.