参考:https://stackoverflow.com/questions/38461705/checkout-jenkins-pipeline-git-scm-with-credentials
You can use the following in a pipeline:
git branch: 'master', credentialsId: '12345-1234-4696-af25-123455', url: 'ssh://git@bitbucket.org:company/repo.git'
没有评论:
发表评论