From 67098f8aad956d78cd442f29f5447535cb19a4af Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 26 Nov 2021 15:59:33 +0100 Subject: [PATCH] fix boolean condition on maven-parent --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d3f2504..9653149 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'],