エラー:
Failed to connect to repository : Command "/usr/bin/git ls-remote -h file:///home/myuser/path/to/project HEAD" returned status code 128:
stdout:
stderr: fatal: 'home/myuser/path/to/project' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
私は次のことを試しました:
chmod 777
repo フォルダー (.git ディレクトリを含むフォルダー) へchowned
jenkins:jenkins
レポフォルダに- このローカル リポジトリ フォルダーから別のフォルダーにクローンしようとしました: これは機能します!
上記のコマンドを実行すると、/usr/bin/git ls-remote -h file:///home/myuser/path/to/project HEAD
cmd でブランチが取得されます。
私の質問は次のとおりです。
git ls-remote -h ...
コマンドが呼び出されるのはなぜgit clone ...
ですか?- ローカル リポジトリからコードを取得するように jenkins git プラグインを構成する方法
私の環境:
RHEL5.9
サービスとしてインストールされた Jenkins 1.519 (Web コンテナーなし)