我的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
答案 0 :(得分:0)
no interaction
还有arc diff
个选项。你可能想尝试类似的东西:
echo 'y' | arc diff ...
甚至
echo 'y y y' | arc diff ...
您还可以使用是命令:http://linux.die.net/man/1/yes