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

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

問題

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 - Crucible CLI tool does not work in a sym linked directory. 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.

更新日時: September 25, 2025

さらにヘルプが必要ですか?

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