diff --git a/Jenkinsfile b/Jenkinsfile index f2748c6..fcb3f0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -220,7 +220,7 @@ pipeline { if("${DEPLOY_CATEGORY}"){ println("Going to deploy the Release components") def releaseList = [] - def smartgears + String smartgears def categories="${DEPLOY_CATEGORY}".split(',') jsonConfig.gCube_release.Components.each { group_name, component_list -> for ( def category : categories){ @@ -362,12 +362,12 @@ def deployJobs(def serviceList){ } //Deploy only release components. All the component are passed as: componentName,componentVersion -def deployReleaseJobs(def serviceList, def smartgears){ +def deployReleaseJobs(def serviceList, String smartgears){ for (def record : serviceList) { println("Processing record: "+record) service=record.split(","); stage(service[0]){ - println("Processing RELEASE deploy: service "+service[ 0 ]+" with version "+service[ 1 ]) + println("Processing RELEASE deploy: service "+service[ 0 ]+" with version "+service[ 1 ]+" and SG "+smartgears) catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { checkupRelease(service[0], service[ 1 ]); deployRelease(service[0], service[ 1 ], smartgears);