Add parameters to buildComponents.
This commit is contained in:
parent
5f20fd1884
commit
0fe8181edd
|
@ -108,56 +108,65 @@ pipeline {
|
|||
}
|
||||
stage('build Core components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Core?.collect { "${it.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Core?.collect { "${it.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Core components"
|
||||
}
|
||||
}
|
||||
stage('build PortalCore components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.PortalCore?.collect { "${it.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.PortalCore?.collect { "${it.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Portal-Core components"
|
||||
}
|
||||
}
|
||||
|
||||
stage('build Enabling components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Enabling?.collect { "${it.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Enabling?.collect { "${it.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Enabling components"
|
||||
}
|
||||
}
|
||||
stage('build ClientLibraries components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.ClientLibraries?.collect { "${it?.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.ClientLibraries?.collect { "${it?.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with ClientLibraries components"
|
||||
}
|
||||
}
|
||||
stage('build Libraries components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Libraries?.collect { "${it?.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Libraries?.collect { "${it?.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Libraries components"
|
||||
}
|
||||
}
|
||||
stage('build Plugins components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Plugins?.collect { "${it?.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Plugins?.collect { "${it?.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Plugins components"
|
||||
}
|
||||
}
|
||||
stage('build Services components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Services?.collect { "${it?.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Services?.collect { "${it?.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Services components"
|
||||
}
|
||||
}
|
||||
stage('build Widgets components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Widgets?.collect { "${it?.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Widgets?.collect { "${it?.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Widgets components"
|
||||
}
|
||||
}
|
||||
stage('build Portlets components') {
|
||||
steps {
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Portlets?.collect { "${it?.name}" }
|
||||
buildComponents items: jsonConfig.gCube_release.Components.Portlets?.collect { "${it?.name}" },
|
||||
"${maven_settings_file}", "${maven_local_repo_path}"
|
||||
echo "Done with Portlets components"
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +174,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
def buildComponents(args) {
|
||||
def buildComponents(args, maven_settings_file, maven_local_repo_path) {
|
||||
if (args.items) {
|
||||
parallel args.items?.collectEntries { name ->
|
||||
["${name}": {
|
||||
|
|
Loading…
Reference in New Issue