Test workflow_definition before generating model
Change-Id: I9ce904fcb52e7cfd6753b3aec26d14bdfeffd76f
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index d8bee44..e59f0ce 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -82,7 +82,6 @@
def templateContext = readYaml text: content
def clusterName = templateContext.default_context.cluster_name
def clusterDomain = templateContext.default_context.cluster_domain
- sh "python ${env.WORKSPACE}/workflow_definition_test.py"
git.checkoutGitRepository("${testEnv}/classes/system", RECLASS_MODEL_URL, RECLASS_MODEL_BRANCH, CREDENTIALS_ID)
saltModelTesting.setupAndTestNode("cfg01.${clusterDomain}", clusterName, EXTRA_FORMULAS, testEnv)
}
@@ -124,6 +123,10 @@
python.setupCookiecutterVirtualenv(cutterEnv)
}
+ stage("Check workflow_definition") {
+ sh "python ${env.WORKSPACE}/workflow_definition_test.py"
+ }
+
def contextFiles
dir("${templateEnv}/contexts") {
contextFiles = findFiles(glob: "*.yml")