有一个由Jenkins Worflow Plugin执行的groovy脚本。
作为documented,git步骤到目前为止只有基本配置,只有一个url参数,并且suggested使用常规checkout scm步骤来处理更复杂的事情。
有了这个,就可以传递credentialsId:
checkout scm: [$class: 'MercurialSCM', source: 'ssh://hg@bitbucket.org/user/repo', clean: true, credentialsId: '1234-5678-abcd']
但是如何才能使用SSH密钥凭证来实现呢?
答案 0 :(得分:2)