Use the commits in the report when flagged.
This commit is contained in:
parent
55100d5ad4
commit
a0717aab75
|
@ -68,7 +68,7 @@ pipeline {
|
|||
stage(components[i]['name']) {
|
||||
appendHeading(components[i]['name'], components[i]['version'])
|
||||
createNotes(components[i]['name'], components[i]['gitRepo'],
|
||||
components[i]['commitID'], components[i]['version'], gCube_release_version)
|
||||
params.use_report_commits? components[i]['commitID']:null, components[i]['version'], gCube_release_version)
|
||||
}
|
||||
}
|
||||
appendFooter()
|
||||
|
@ -119,7 +119,7 @@ def createNotes(repo_name, repo_url, commit, version, gCube_release_version) {
|
|||
sh(script: "rm -r ${repo_name} || true", returnStdout: true)?.trim()
|
||||
checkout([
|
||||
$class : 'GitSCM',
|
||||
branches : [[name: '*/master']],
|
||||
branches : [[name: commit? commit : '*/master']],
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions : [
|
||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: repo_name],
|
||||
|
|
Loading…
Reference in New Issue