Merge "Add missed fetch for submodules for upgrade-mcp-release"
diff --git a/test-salt-model-wrapper.groovy b/test-salt-model-wrapper.groovy
index b8fb9e8..118431a 100644
--- a/test-salt-model-wrapper.groovy
+++ b/test-salt-model-wrapper.groovy
@@ -213,11 +213,15 @@
if (gerritProject == cookiecutterTemplatesRepo) {
branchJobName = 'test-drivetrain'
branches[branchJobName] = runTests(branchJobName, yamlJobParameters(buildTestParams))
- }
- if (gerritProject in [cookiecutterTemplatesRepo, reclassSystemRepo]) {
branchJobName = 'oscore-test-cookiecutter-models'
branches[branchJobName] = runTests(branchJobName, yamlJobParameters(buildTestParams))
}
+ if (env['GERRIT_EVENT_COMMENT_TEXT'] && new String(env['GERRIT_EVENT_COMMENT_TEXT'].decodeBase64()) =~ /\ntest_schemas.*/) {
+ if (gerritProject == reclassSystemRepo) {
+ branchJobName = 'oscore-test-cookiecutter-models'
+ branches[branchJobName] = runTests(branchJobName, yamlJobParameters(buildTestParams))
+ }
+ }
}
branches.keySet().each { key ->
if (branches[key] instanceof Closure) {