From 0fe8181edd7b00f1e264135c4d005fac12646cd3 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Mon, 30 Sep 2019 22:07:28 -0400 Subject: [PATCH] Add parameters to buildComponents. --- Jenkinsfile | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 24b0e35..50bbfc6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}": {