change input param name: from add_maven_parent to include_maven_parent
This commit is contained in:
parent
97d105fe5c
commit
e318921405
|
@ -59,7 +59,7 @@ pipeline {
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
description: 'Use the commits on the report or the latest is on master?')
|
description: 'Use the commits on the report or the latest is on master?')
|
||||||
|
|
||||||
booleanParam(name: 'add_maven_parent',
|
booleanParam(name: 'include_maven_parent',
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
description: 'Set to true only 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 {
|
steps {
|
||||||
script {
|
script {
|
||||||
for (int i = 0; i < components.size(); i++) {
|
for (int i = 0; i < components.size(); i++) {
|
||||||
if((components[i]['name'] != 'maven-parent') || (params.add_maven_parent)){
|
if((components[i]['name'] != 'maven-parent') || (params.include_maven_parent)){
|
||||||
stage(components[i]['name']) {
|
stage(components[i]['name']) {
|
||||||
appendHeading(components[i]['name'], components[i]['version'],components[i]['gitRepo'], components[i]['commitID'])
|
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'],
|
||||||
|
|
Loading…
Reference in New Issue