5

I have a Jenkins pipeline using the following code to checkout the project to build.

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']]])

After the build is done, click the build record. enter image description here

Same as click the Status page. enter image description here

How do I make git Revision display the remote repo address, for example like git@github.com:foo/bar.git/tree/develop, instead of refs/remotes/origin/develop. enter image description here

Also in the Git Build Data page as shown below.enter image description hereenter image description here

Thanks in advance!

ncubrian
  • 421
  • 1
  • 3
  • 14

0 Answers0