Add case of infra salt-model
Change-Id: I690e535c70d524feb5a23183756a1c9e8f1a8b9a
diff --git a/test-salt-models-pipeline.groovy b/test-salt-models-pipeline.groovy
index 1ed95f5..79a6662 100644
--- a/test-salt-models-pipeline.groovy
+++ b/test-salt-models-pipeline.groovy
@@ -14,6 +14,13 @@
def ssh = new com.mirantis.mk.Ssh()
def git = new com.mirantis.mk.Git()
+def config_node_name_pattern
+try {
+ config_node_name_pattern = CONFIG_NODE_NAME_PATTERN
+} catch (MissingPropertyException e) {
+ config_node_name_pattern = "cfg01"
+}
+
def gerritRef
try {
gerritRef = GERRIT_REFSPEC
@@ -81,7 +88,7 @@
stage("test-nodes") {
if(checkouted) {
- def nodes = sh(script: "find ./nodes -type f -name 'cfg*.yml'", returnStdout: true).tokenize()
+ def nodes = sh(script: "find ./nodes -type f -name '${config_node_name_pattern}*.yml'", returnStdout: true).tokenize()
def branches = [:]
def acc = 0
for (int i = 0; i < nodes.size(); i++) {