Add tagged commit for each component.

This commit is contained in:
Manuele Simi 2020-06-19 15:06:12 -04:00
parent 0ba44265ea
commit 42f2ade0fc
1 changed files with 5 additions and 2 deletions

7
Jenkinsfile vendored
View File

@ -77,7 +77,7 @@ pipeline {
script {
for (int i = 0; i < components.size(); i++) {
stage(components[i]['name']) {
appendHeading(components[i]['name'], components[i]['version'])
appendHeading(components[i]['name'], components[i]['version'],components[i]['gitRepo'], components[i]['commitID'])
createNotes(components[i]['name'], components[i]['gitRepo'],
params.use_report_commits? components[i]['commitID']:null, components[i]['version'], gCube_release_version)
}
@ -231,9 +231,12 @@ def appendNotes(repo_notes) {
* @param name the name of the repository
* @param version the version of the component
*/
def appendHeading(name, version) {
def appendHeading(name, version, gitRepo, commitID) {
sh("""
echo "## ${name} ${version}" >> $RELEASE_NOTES
echo "Tagged commit: _[${commitID}](${gitRepo}/commit/${commitID})_" >> $RELEASE_NOTES
echo "" >> $RELEASE_NOTES
""")
}