SmartGears var as string

This commit is contained in:
Roberto Cirillo 2022-10-12 11:07:55 +02:00
parent e739de9ec3
commit 6b9ab6a413
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -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);