jenkins / jenkins中的ssh身份validation:在克隆过程中,docker镜像挂起
我正在运行一个创buildjenkins/jenkins:lts
的容器jenkins/jenkins:lts
在64位Ubuntu上的docker镜像16.04.1 LTS和git轮询和克隆操作在我使用带密码的ssh密钥进行ssh身份validation时挂起
2017年12月22日下午1时47分55秒开始
轮询SCM上的更改
使用策略:默认
git rev-parse –is-inside-work-tree#timeout = 10
从远程Git存储库获取更改
git config remote.origin.url git@github.com:username / repo_path.git#timeout = 10
从git@github.com获取上游变更:username / repo_path.git
git –version#timeout = 10
使用GIT_SSH设置凭据test-key
git fetch –tags –progress git@github.com:username / repo_path.git + refs / heads / :refs / remotes / origin / #timeout = 3
这是轮询挂起时的ps
输出
jenkins 2405 0.0 0.0 15604 1080 13:49 git ls-remote -h git@github.com:username / repo_path.git HEAD
jenkins 2409 0.0 0.0 4288 800 13:49 / bin / sh /tmp/ssh852924073958836602.sh git@github.com git-upload-pack'username / repo_path.git'
jenkins 2410 0.0 0.0 47248 5616 13:49 ssh -i /tmp/ssh253076704069644928.key -l jenkins -o StrictHostKeyChecking = no git@github.com git-upload-pack'username / repo_path.git'
使用的jenkins插件是最新的可用git
, git client
, ssh agent
和ssh credentials
。
当我手动运行控制台上的ssh -i
行时,它会提示input密码,然后按照预期与远程git服务器交互。
另一个input是,如果我通过https克隆了使用username / passwordauthentication的repo,并将configuration中的jenkins项目的密码ssh凭证分配给我,我仍然可以在jenkins execute shell中与远程repo进行交互。
如果我使用没有密码的密钥,它一切正常。 我看到很多人在不同的论坛上抱怨类似的问题,但似乎没有答案,如果有解决scheme,是什么问题。 我不知道这是一个jenkins,jenkins插件,docker或只是一个configuration问题。 所以,指出这个问题是值得赞赏的。