Add tagged commit for each component.
This commit is contained in:
parent
0ba44265ea
commit
42f2ade0fc
|
@ -77,7 +77,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
for (int i = 0; i < components.size(); i++) {
|
for (int i = 0; i < components.size(); i++) {
|
||||||
stage(components[i]['name']) {
|
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'],
|
createNotes(components[i]['name'], components[i]['gitRepo'],
|
||||||
params.use_report_commits? components[i]['commitID']:null, components[i]['version'], gCube_release_version)
|
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 name the name of the repository
|
||||||
* @param version the version of the component
|
* @param version the version of the component
|
||||||
*/
|
*/
|
||||||
def appendHeading(name, version) {
|
def appendHeading(name, version, gitRepo, commitID) {
|
||||||
sh("""
|
sh("""
|
||||||
echo "## ${name} ${version}" >> $RELEASE_NOTES
|
echo "## ${name} ${version}" >> $RELEASE_NOTES
|
||||||
|
echo "Tagged commit: _[${commitID}](${gitRepo}/commit/${commitID})_" >> $RELEASE_NOTES
|
||||||
|
echo "" >> $RELEASE_NOTES
|
||||||
|
|
||||||
""")
|
""")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue