From 97d105fe5cc33ef005a41b63fb1fbde5999ed892 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 26 Nov 2021 23:25:14 +0100 Subject: [PATCH] bug/22468 (#2) Reviewed-on: https://code-repo.d4science.org/gCubeCI/gCubeReleaseNotes/pulls/2 Co-authored-by: Roberto Cirillo Co-committed-by: Roberto Cirillo --- Jenkinsfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f27c82..9653149 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -58,6 +58,11 @@ pipeline { booleanParam(name: 'use_report_commits', defaultValue: true, description: 'Use the commits on the report or the latest is on master?') + + booleanParam(name: 'add_maven_parent', + defaultValue: false, + description: 'Set to true only if the maven-parent must be added to the notes') + } @@ -76,11 +81,13 @@ pipeline { steps { script { for (int i = 0; i < components.size(); i++) { - stage(components[i]['name']) { - appendHeading(components[i]['name'], components[i]['version'],components[i]['gitRepo'], components[i]['commitID']) - createNotes(components[i]['name'], components[i]['gitRepo'], + if((components[i]['name'] != 'maven-parent') || (params.add_maven_parent)){ + stage(components[i]['name']) { + 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) - } + } + } } appendFooter() }