fix boolean condition on maven-parent

This commit is contained in:
Roberto Cirillo 2021-11-26 15:59:33 +01:00
parent 985ada5740
commit 67098f8aad
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -61,7 +61,7 @@ pipeline {
booleanParam(name: 'add_maven_parent',
defaultValue: false,
description: 'Set to true if the maven-parent must be added to the notes')
description: 'Set to true only if the maven-parent must be added to the notes')
}
@ -81,7 +81,7 @@ pipeline {
steps {
script {
for (int i = 0; i < components.size(); i++) {
if((components[i]['name'] != 'maven-parent') || (add_maven_parent)){
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'],