Use the commits in the report when flagged.

This commit is contained in:
Manuele Simi 2020-06-06 16:04:08 -04:00
parent 55100d5ad4
commit a0717aab75
1 changed files with 2 additions and 2 deletions

View File

@ -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],