我有一个Jenkins管道,使用以下代码检出要构建的项目。
checkout([$class: 'GitSCM', branches: [[name: "*/develop"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', noTags: false, reference: '', shallow: false],[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'foobar', url: 'git@github.com:foo/bar.git']]])
如何使git Revision显示远程回购地址,例如git@github.com:foo / bar.git / tree / develop,而不是refs / remotes / origin / develop。
谢谢!