У меня есть конвейер 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']]])
После завершения сборки щелкните запись сборки. ![enter image description here](https://i.stack.imgur.com/i5rFo.png)
То же, что и на странице состояния. ![enter image description here](https://i.stack.imgur.com/6VmVI.png)
Как заставить git Revision отображать адрес удаленного репо, например, например, git@github.com: foo / bar.git / tree / develop, а не refs / remotes / origin /velop.
![enter image description here](https://i.stack.imgur.com/GEyxY.png)
Также на странице Git Build Data, как показано ниже. ![enter image description here](https://i.stack.imgur.com/AiyX1.png)
![enter image description here](https://i.stack.imgur.com/ILp0q.png)
Заранее спасибо!