Remove useless prints
Change-Id: Iaa467d50f39d426f7b743d60046218b63b406599
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 42e4cb4..f2a1c72 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -41,7 +41,6 @@
def productList = ["infra", "cicd", "opencontrail", "kubernetes", "openstack", "stacklight"]
for (product in productList) {
- def stagename = (product == "infra") ? "Generate base infrastructure" : "Generate product ${product}"
if (product == "infra" || (templateContext.default_context["${product}_enabled"]
&& templateContext.default_context["${product}_enabled"].toBoolean())) {
templateDir = "${templateEnv}/cluster_product/${product}"
@@ -95,7 +94,7 @@
common.successMsg("Change ${GERRIT_CHANGE_NUMBER} is already merged, no need to gate them")
}
} else {
- git.checkoutGitRepository(templateEnv, "ssh://jenkins-mk@gerrit.mcp.mirantis.net:29418/mk/cookiecutter-templates", COOKIECUTTER_TEMPLATE_BRANCH, CREDENTIALS_ID)
+ git.checkoutGitRepository(templateEnv, COOKIECUTTER_TEMPLATE_URL, COOKIECUTTER_TEMPLATE_BRANCH, CREDENTIALS_ID)
}
}
@@ -119,8 +118,6 @@
}
}
- sh("ls -lRa")
-
stage("test-nodes") {
def partitions = common.partitionList(contextFileList, 3)
def buildSteps = [:]
@@ -141,7 +138,7 @@
throw e
} finally {
stage ('Clean workspace directories') {
- sh(returnStatus: true, script: "rm -rfv *")
+ sh(returnStatus: true, script: "rm -rfv * > /dev/null || true")
}
common.sendNotification(currentBuild.result,"",["slack"])
}