Only check syntax when triggered by gerrit
Change-Id: I75adac51c67877e50c31161e62c1071bcf8e3f15
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 5da97f3..82718c4 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -71,13 +71,6 @@
gerritRef = null
}
-def testOption
-try {
- testOption = TEST_OPTION
-} catch (MissingPropertyException e) {
- testOption = "salt-model"
-}
-
timestamps {
node("python&&docker") {
def templateEnv = "${env.WORKSPACE}"
@@ -125,7 +118,7 @@
}
}
- if (testOption == "salt-model") {
+ if (gerritRef) {
stage("test-nodes") {
def partitions = common.partitionList(contextFileList, PARALLEL_NODE_GROUP_SIZE.toInteger())
def buildSteps = [:]