[英]how to checkout specific tag/commit (git) with Jenkins pipeline
到目前为止,我在 jenkins 中运行了以下命令:
git branch: branch_nam, url: url, credentialsId: cred
它工作正常。 我试图添加一种方法来检查特定的标签/提交,所以我使用了以下命令:
checkout scm: [$class: 'GitSCM', userRemoteConfigs: [[url: url]], branches: [[name: tag]]], credentialsId: cred, poll: false
但我收到以下错误:
错误:克隆远程 repo 'origin' hudson.plugins.git.GitException 时出错:命令“git fetch --tags --progress http://codefront:8080/tfs/DefaultCollection/some_folder +refs/heads/ :refs/remotes/ origin/ " 返回状态码 128: stdout: stderr: fatal: http://codefront:8080/tfs/DefaultCollection/some_folder身份验证失败
我做错了什么? 他们每个命令的工作方式有什么区别?
提前致谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.