Jobs as parameter.
This commit is contained in:
parent
5c120a3207
commit
520fc3d31b
|
@ -186,7 +186,7 @@ pipeline {
|
||||||
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
||||||
stage("build ${group_name} components") {
|
stage("build ${group_name} components") {
|
||||||
buildComponents items: component_list?.collect { "${it.name}" },
|
buildComponents items: component_list?.collect { "${it.name}" },
|
||||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
"${maven_settings_file}", "${maven_local_repo_path}", jobs
|
||||||
echo "Done with ${group_name} components"
|
echo "Done with ${group_name} components"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def buildComponents(args, maven_settings_file, maven_local_repo_path) {
|
def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
||||||
if (args.items) {
|
if (args.items) {
|
||||||
parallel args.items?.collectEntries { name ->
|
parallel args.items?.collectEntries { name ->
|
||||||
["${name}": {
|
["${name}": {
|
||||||
|
|
Loading…
Reference in New Issue