add new checkbox input parameter: add_maven_parent

This commit is contained in:
Roberto Cirillo 2021-11-26 15:51:36 +01:00
parent 8ad58c17cc
commit 985ada5740
1 changed files with 6 additions and 1 deletions

7
Jenkinsfile vendored
View File

@ -59,6 +59,11 @@ pipeline {
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 if the maven-parent must be added to the notes')
}
stages {
@ -76,7 +81,7 @@ pipeline {
steps {
script {
for (int i = 0; i < components.size(); i++) {
if(components[i]['name'] != 'maven-parent'){
if((components[i]['name'] != 'maven-parent') || (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'],