0

我的 Jenkins 服务器正在运行 arc diff,有时我有很大的差异,如果是这种情况,我不希望我的工作失败:

与最新的弧线大师一起,我得到:

This diff has a very large number of changes (762). Differential works
best for changes which will receive detailed human review, and not as
well for large automated changes or bulk checkins. See
https://secure.phabricator.com/book/phabricator/article/differential_large_changes/
for information about reviewing big checkins. Continue anyway? [y/N] 
[1mUsage Exception:[m Aborted generation of gigantic diff.
Build step 'Execute shell' marked build as failure

我当前的代码试图避免交互性并且大部分都有效,除了大的差异。有什么办法吗?

echo "jenkins

Summary:

Test Plan:
required
Reviewers:
alberto56
Subscribers:

JIRA Issues:
$JIRAISSUE" > arc_info.txt

arc diff --allow-untracked --message jenkins --message-file arc_info.txt origin/master

rm arc_info.txt
4

1 回答 1

0

no interaction选项(还)arc diff。您可能想尝试以下方法:

echo 'y' | arc diff ...

甚至

echo 'y y y' | arc diff ...

您也可以使用Yes命令: http: //linux.die.net/man/1/yes

于 2015-11-19T09:41:29.467 回答