crucible.py returns Failed to get a patch. Please make sure to call the script from an SCM directory with local changes, or pipe in some input

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

この記事はアトラシアンのサーバー製品にのみ適用されます。クラウドとサーバー製品の違いについてはこちらをご確認ください。

問題

When a user is trying to create a review using crucible.py as mentioned in Creating reviews from the command line in P4 workspace, it throws an error as

..
..
DEBUG:root:Checking <class '__main__.P4Source'>.is_active
DEBUG:root:Trying to execute (['p4'],)
Failed to get a patch. Please make sure to call the script from an SCM directory with local changes, or pipe in some input.

原因

Script is trying to execute the p4 executables but not able to pipe the output from subprocess

回避策

  1. It may be an issue as explained in  CRUC-8206 - Getting issue details... STATUS . If you are running the script in a workspace containing a P4 repo is a symbolic link, try the workaround mentioned in the bug.
  2. Please verify the p4 is in environment variable PATH. We have seen similar issues when the p4 is made available with alias.


最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.