2017-02-13 2 views
-1

プライベートbitbucketリポジトリからコンポーザ依存関係をcomposer installでインストールしようとしています(Jenkins CIによってトリガーされる)IISサーバー上のcomposer.jsonの下に行があります。ComposerはIIS上にJenkins CIのプライベートリポジトリをインストールします

"repositories": [ 
    { 
     "type": "vcs", 
     "url": "ssh://[email protected]/company/repo-name.git" 
    } 
], 

結果は次のとおりです。

Failed to execute git clone --mirror "ssh://[email protected]/company/web.git" "C:/Users/myusername/AppData/Local/Composer/vcs/ssh---company-bitbucket.org-repo-name.git/" 
Cloning into bare repository 'C:/Users/myusername/AppData/Local/Composer/vcs/ssh---company-bitbucket.org-repo-name.git'... 
Permission denied (publickey). 
fatal: Could not read from remote repository. 
Please make sure you have the correct access rights and the repository exists. 

それはssh-agentのを必要とせずに作曲とprivate.ppkリンクすることは可能ですか?

答えて

0

Jenkins CIはsysuserとしてログインしていますので、.sshフォルダに移動して設定ファイルを編集してください:C:\ Windows \ System32 \ config \ systemprofile.ssh \ config( "config"ファイルが存在しない場合は作成してください)

たとえば、キーサブフォルダ:C:

Host bitbucket.org 
HostName bitbucket.org 
User git 
IdentityFile ~/.ssh/keys/bitbucket 
:\ WINDOWS \ System32に\ CONFIG \ systemprofile.ssh \キー\ビットバケット

設定ファイルでは、これらの行を追加します。

関連する問題