0

私の Jenkins サーバーは arc diff を実行していますが、たまに大きな diff がある場合、ジョブが失敗することは望ましくありません。

最新の master of arc を使用すると、次のようになります。

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 に答える