Fixed parent pipeline for running customer models
Change-Id: I52ee8de81797a92bea1f13adf575ce34526a52f7
diff --git a/test-customers-salt-models.groovy b/test-customers-salt-models.groovy
index c0750c0..3c0ccaf 100644
--- a/test-customers-salt-models.groovy
+++ b/test-customers-salt-models.groovy
@@ -13,12 +13,13 @@
if(common.validInputParam("CUSTOMERS")){
def customerList = CUSTOMERS.tokenize(",").collect{it.trim()}
for(int i=0; i<customerList.size(); i++){
- common.infoMsg("Test of ${clusterName} starts")
- build job: "test-salt-model-customer-${customerList[i]}"
+ def modelName = customerList[i]
+ common.infoMsg("Test of ${modelName} starts")
+ build job: "test-salt-model-customer-${modelName}"
// build job: "test-salt-model-customer-${customerList[i]}", parameters: [
// [$class: 'StringParameterValue', name: 'DEFAULT_GIT_URL', value: defaultGitUrl],
// [$class: 'StringParameterValue', name: 'DEFAULT_GIT_REF', value: defaultGitRef],
- // [$class: 'StringParameterValue', name: 'CLUSTER_NAME', value: clusterName],
+ // [$class: 'StringParameterValue', name: 'CLUSTER_NAME', value: modelName],
// [$class: 'StringParameterValue', name: 'NODE_TARGET', value: testTarget],
// [$class: 'StringParameterValue', name: 'FORMULAS_SOURCE', value: formulasSource]
// [$class: 'StringParameterValue', name: 'EXTRA_FORMULAS', value: EXTRA_FORMULAS],
@@ -39,9 +40,7 @@
currentBuild.description = currentBuild.description ? e.message + " " + currentBuild.description : e.message
throw e
} finally {
- common.sendNotification(currentBuild.result,"",["slack"])
- def _extra_descr = "${SOURCE}=>${TARGET}:\n${COMPONENTS} ${packages}"
- currentBuild.description = currentBuild.description ? _extra_descr + " " + currentBuild.description : _extra_descr
+ common.sendNotification(currentBuild.result, "", ["slack"])
}
}
}