Run oscore deployments only for special form of recheck
Currently even if user posted usual recheck comment, oscore CC deployment
will be launched on reclass-system, due to lack of resources deployemnt
for patch to reclass-system should be triggered only when comment is in
form:
recheck
test_schemas:
openstack-ovs-core-ssl-queens:
....
Change-Id: Ida3d4f0809dc135e0ac4416056cbddfd98cb0bb8
Related-Prod: https://mirantis.jira.com/browse/PROD-28086
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) {