使用凭证结帐Jenkins Pipeline Git SCM?

使用凭证结帐Jenkins Pipeline Git SCM?,第1张

使用凭证结帐Jenkins Pipeline Git SCM?

您可以在管道中使用以下内容:

git branch: 'master',    credentialsId: '12345-1234-4696-af25-123455',    url: 'ssh://[email protected]:company/repo.git'

如果您使用的是ssh网址,则您的凭据必须为用户名+私钥。如果您使用的是https克隆URL而不是ssh,则您的凭据应为用户名+密码。



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5615063.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存