2
ビルドの一環としてbare git repoを更新しようとしています。 Linuxではそれは比較的シンプルでした:しかし、私はWindows上でそれを行う方法を理解できません。私が試した:gitをJenkinsのssh-agentでWindows上で直接使用する方法
dir("c:\\my\\git\\repo.git") {
withEnv(["PATH=${env.PATH};C:\\Program Files\\Git\\usr\\bin"]) {
sshagent(['git']) {
sh "git fetch origin module:module"
}
}
}
しかし、それは失敗します。
Could not find ssh-agent: IOException: Cannot run program "ssh-agent": CreateProcess error=2, The system cannot find the file specified
Check if ssh-agent is installed and in PATH
私はそれをどのように行うことができますか?
ありがとうございました。 'withEnv'での設定がうまくいかない... –