add check on component name: if it is maven-parent then skip

This commit is contained in:
Roberto Cirillo 2021-11-26 15:05:21 +01:00
parent 0179840507
commit 5fc3febacd
1 changed files with 6 additions and 4 deletions

10
Jenkinsfile vendored
View File

@ -76,11 +76,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] != "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()
}