-
Improvement
-
Resolution: Duplicate
-
Major
-
None
Given the following code
lock('checkout') { stage('checkout') { checkout([$class: 'GitSCM', branches: [[name: branch]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanCheckout'], [$class: 'ScmName', name: 'super']], submoduleCfg: [], userRemoteConfigs: [[url: "${gitBaseUrl}/${superRepo}"]]]) def repos = readFile('.gitslave') def reposLines = repos.readLines() for (line in reposLines) { def repoInfo = line.split(' ') def repoUrl = repoInfo[0] def repoPath = repoInfo[1] def curatedRepoUrl = repoUrl.substring(4, repoUrl.length()-1) def curatedRepoPath = repoPath.substring(1, repoPath.length()-1) checkout([$class: 'GitSCM', branches: [[name: branch]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: curatedRepoPath], [$class: 'CleanCheckout'], [$class: 'ScmName', name: curatedRepoPath]], submoduleCfg: [], userRemoteConfigs: [[url: "${gitBaseUrl}/${curatedRepoUrl}"]]]) } } }
We use $class: 'ScmName', name: curatedRepoPath].
That is reflected in the SCM list, but not in Pipeline Step. See attached screenshots.
Would be great if that value was used in the SCM pipeline step.
- duplicates
-
JENKINS-37324 We would like a more meaningful description of a step
- Closed