generated from gCubeCI/Pipeline-Docker-Template
small fix
This commit is contained in:
parent
6d756fa30b
commit
8f1fd22867
|
@ -221,16 +221,15 @@ pipeline {
|
||||||
println("Going to deploy the Release components")
|
println("Going to deploy the Release components")
|
||||||
def releaseList = []
|
def releaseList = []
|
||||||
// boolean smartgears
|
// boolean smartgears
|
||||||
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){
|
||||||
if("${group_name}" == "$category"){
|
if("${group_name}" == "$category"){
|
||||||
if (category == 'Distribution'){
|
if (category == 'Distribution'){
|
||||||
//smartgears = true
|
//smartgears = true
|
||||||
smartgears= component_list?.collect{ return "$it.version" }
|
def sg= component_list?.collect{ return "$it.version" }
|
||||||
println("smartgears found is ${smartgears}")
|
smartgears=(sg !=null ) ? sg[0] : null
|
||||||
smartgears=(smartgears !=null ) ? smartgears[0] : null
|
|
||||||
println("smartgears version is ${smartgears}")
|
println("smartgears version is ${smartgears}")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -312,7 +311,7 @@ def checkup(String service, String version, String host){
|
||||||
}
|
}
|
||||||
|
|
||||||
//launch ansible deploy
|
//launch ansible deploy
|
||||||
def deployRelease(String service, String version, boolean smartgears){
|
def deployRelease(String service, String version, String smartgears){
|
||||||
def now = new Date();
|
def now = new Date();
|
||||||
println("Going to deploy the service "+service+" with version: "+version+" on preproduction ");
|
println("Going to deploy the service "+service+" with version: "+version+" on preproduction ");
|
||||||
def statusCode = sh( script: "cd $ANSIBLE_ROOT_FOLDER;git pull;./deployPreprodService.sh $service $version $smartgears ;", returnStdout: true);
|
def statusCode = sh( script: "cd $ANSIBLE_ROOT_FOLDER;git pull;./deployPreprodService.sh $service $version $smartgears ;", returnStdout: true);
|
||||||
|
@ -368,7 +367,7 @@ 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, boolean 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(",");
|
||||||
|
|
Loading…
Reference in New Issue