generated from gCubeCI/Pipeline-Docker-Template
SmartGears var as string
This commit is contained in:
parent
e739de9ec3
commit
6b9ab6a413
|
@ -220,7 +220,7 @@ pipeline {
|
||||||
if("${DEPLOY_CATEGORY}"){
|
if("${DEPLOY_CATEGORY}"){
|
||||||
println("Going to deploy the Release components")
|
println("Going to deploy the Release components")
|
||||||
def releaseList = []
|
def releaseList = []
|
||||||
def smartgears
|
String smartgears
|
||||||
def categories="${DEPLOY_CATEGORY}".split(',')
|
def categories="${DEPLOY_CATEGORY}".split(',')
|
||||||
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
jsonConfig.gCube_release.Components.each { group_name, component_list ->
|
||||||
for ( def category : categories){
|
for ( def category : categories){
|
||||||
|
@ -362,12 +362,12 @@ def deployJobs(def serviceList){
|
||||||
|
|
||||||
}
|
}
|
||||||
//Deploy only release components. All the component are passed as: componentName,componentVersion
|
//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) {
|
for (def record : serviceList) {
|
||||||
println("Processing record: "+record)
|
println("Processing record: "+record)
|
||||||
service=record.split(",");
|
service=record.split(",");
|
||||||
stage(service[0]){
|
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') {
|
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
|
||||||
checkupRelease(service[0], service[ 1 ]);
|
checkupRelease(service[0], service[ 1 ]);
|
||||||
deployRelease(service[0], service[ 1 ], smartgears);
|
deployRelease(service[0], service[ 1 ], smartgears);
|
||||||
|
|
Loading…
Reference in New Issue