blob: fde7ab0138ca49df8bb07b716018e52fa4cd319d [file] [log] [blame]
vnaumov33747e12020-05-04 17:35:20 +02001package com.mirantis.mk
vnaumov33747e12020-05-04 17:35:20 +02002
3/**
4 *
5 * KaaS Component Testing Utilities
6 *
7 */
8
Владислав Наумовe5345812020-08-12 16:30:20 +02009/**
10 * Check KaaS Core CICD feature flags
11 * such triggers can be used in case of switching between pipelines,
12 * conditions inside pipelines to reduce dependency on jenkins job builder and jenkins job templates itself
13 *
14 * @return (map)[
15 * ffNameEnabled: (bool) True/False
16 * ]
17 */
18def checkCoreCIFeatureFlags() {
19 def common = new com.mirantis.mk.Common()
20 def ff = [
21 build_artifacts_upgrade: false,
22 ]
23
24 def commitMsg = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : ''
25 if (commitMsg ==~ /(?s).*\[ci-build-artifacts-upgrade\].*/) {
26 ff['build_artifacts_upgrade'] = true
27 }
28
29 common.infoMsg("Core ci feature flags status: ${ff}")
30 return ff
31}
vnaumov33747e12020-05-04 17:35:20 +020032
33/**
azvyagintseva12230a2020-06-05 13:24:06 +030034 * Determine scope of test suite against per-commit KaaS deployment based on keywords
Владислав Наумов5a523ef2020-07-29 13:33:38 +020035 * Keyword list: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/
azvyagintseva12230a2020-06-05 13:24:06 +030036 *
37 * Used for components team to combine test-suites and forward desired parameters to kaas/core deployment jobs
38 * Example scheme:
Владислав Наумовe5345812020-08-12 16:30:20 +020039 * New CR pushed in kubernetes/lcm-ansible -> parsing it'cs commit body and combine test-suite -> trigger deployment jobs from kaas/core
azvyagintseva12230a2020-06-05 13:24:06 +030040 * manage test-suite through Jenkins Job Parameters
41 *
Владислав Наумов6c2afff2020-06-05 12:54:53 +020042 * @return (map)[
43 * deployChildEnabled: (bool) True if need to deploy child cluster during demo-run
44 * runUie2eEnabled: (bool) True if need to run ui-e2e cluster during demo-run
azvyagintseva12230a2020-06-05 13:24:06 +030045 * ]
46 */
vnaumov33747e12020-05-04 17:35:20 +020047def checkDeploymentTestSuite() {
vnaumovbdb90222020-05-04 18:25:50 +020048 def common = new com.mirantis.mk.Common()
49
vnaumov33747e12020-05-04 17:35:20 +020050 // Available triggers and its sane defaults
Владислав Наумов6c2afff2020-06-05 12:54:53 +020051 def deployChild = env.DEPLOY_CHILD_CLUSTER ? env.DEPLOY_CHILD_CLUSTER.toBoolean() : false
52 def upgradeChild = env.UPGRADE_CHILD_CLUSTER ? env.UPGRADE_CHILD_CLUSTER.toBoolean() : false
53 def upgradeMgmt = env.UPGRADE_MGMT_CLUSTER ? env.UPGRADE_MGMT_CLUSTER.toBoolean() : false
54 def runUie2e = env.RUN_UI_E2E ? env.RUN_UI_E2E.toBoolean() : false
55 def runMgmtConformance = env.RUN_MGMT_CFM ? env.RUN_MGMT_CFM.toBoolean() : false
56 def runChildConformance = env.RUN_CHILD_CFM ? env.RUN_CHILD_CFM.toBoolean() : false
57 def fetchServiceBinaries = env.FETCH_BINARIES_FROM_UPSTREAM ? env.FETCH_BINARIES_FROM_UPSTREAM.toBoolean() : false
Владислав Наумов905dd362020-06-08 16:37:01 +020058 def awsOnDemandDemo = env.ALLOW_AWS_ON_DEMAND ? env.ALLOW_AWS_ON_DEMAND.toBoolean() : false
vnaumov33747e12020-05-04 17:35:20 +020059
Владислав Наумов6c2afff2020-06-05 12:54:53 +020060 def commitMsg = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : ''
vnaumov33747e12020-05-04 17:35:20 +020061 if (commitMsg ==~ /(?s).*\[child-deploy\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*child-deploy.*/ || upgradeChild || runChildConformance) {
62 deployChild = true
63 }
64 if (commitMsg ==~ /(?s).*\[child-upgrade\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*child-upgrade.*/) {
65 deployChild = true
66 upgradeChild = true
67 }
68 if (commitMsg ==~ /(?s).*\[mgmt-upgrade\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*mgmt-upgrade.*/) {
69 upgradeMgmt = true
70 }
71 if (commitMsg ==~ /(?s).*\[ui-e2e\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*ui-e2e.*/) {
72 runUie2e = true
73 }
74 if (commitMsg ==~ /(?s).*\[mgmt-cfm\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*mgmt-cfm.*/) {
75 runMgmtConformance = true
76 }
77 if (commitMsg ==~ /(?s).*\[child-cfm\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*child-cfm.*/) {
78 runChildConformance = true
79 deployChild = true
80 }
81 if (commitMsg ==~ /(?s).*\[fetch.*binaries\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*fetch.*binaries.*/) {
82 fetchServiceBinaries = true
83 }
84 if (commitMsg ==~ /(?s).*\[aws-demo\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*aws-demo.*/) {
85 awsOnDemandDemo = true
86 common.warningMsg('Forced running additional kaas deployment with AWS provider, triggered on patchset using custom keyword: \'aws-demo\' ')
87 }
88
89 // TODO (vnaumov) remove below condition after moving all releases to UCP
90 def ucpChildMatches = (commitMsg =~ /(\[child-ucp\s*ucp-.*?\])/)
91 if (ucpChildMatches.size() > 0) {
92 deployChild = true
93 common.warningMsg('Forced UCP based child deployment triggered on patchset using custom keyword: \'[child-ucp ucp-5-1-0-3-3-0-example]\' ')
94
95 // TODO(vnaumov) delete after ucp upgrades support
96 common.errorMsg('Child upgrade test will be skipped, UCP upgrades temporally disabled')
97 upgradeChild = false
98 }
99
100 common.infoMsg("""
101 Child cluster deployment scheduled: ${deployChild}
102 Child cluster release upgrade scheduled: ${upgradeChild}
103 Child conformance testing scheduled: ${runChildConformance}
104 Mgmt cluster release upgrade scheduled: ${upgradeMgmt}
105 Mgmt conformance testing scheduled: ${runMgmtConformance}
106 Mgmt UI e2e testing scheduled: ${runUie2e}
107 AWS provider additional deployment scheduled: ${awsOnDemandDemo}
108 Service binaries fetching scheduled: ${fetchServiceBinaries}
Владислав Наумов5a523ef2020-07-29 13:33:38 +0200109 Triggers: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/""")
vnaumov33747e12020-05-04 17:35:20 +0200110 return [
azvyagintseva12230a2020-06-05 13:24:06 +0300111 deployChildEnabled : deployChild,
112 upgradeChildEnabled : upgradeChild,
113 runChildConformanceEnabled : runChildConformance,
114 upgradeMgmtEnabled : upgradeMgmt,
115 runUie2eEnabled : runUie2e,
116 runMgmtConformanceEnabled : runMgmtConformance,
vnaumov33747e12020-05-04 17:35:20 +0200117 fetchServiceBinariesEnabled: fetchServiceBinaries,
azvyagintseva12230a2020-06-05 13:24:06 +0300118 awsOnDemandDemoEnabled : awsOnDemandDemo]
vnaumov33747e12020-05-04 17:35:20 +0200119}
120
121/**
122 * Determine if custom si tests/pipelines refspec forwarded from gerrit change request
123
Владислав Наумов5a523ef2020-07-29 13:33:38 +0200124 * Keyword list: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/
vnaumov33747e12020-05-04 17:35:20 +0200125 * Used for components team to test component changes w/ custom SI refspecs using kaas/core deployment jobs
126 * Example scheme:
127 * New CR pushed in kubernetes/lcm-ansible -> parsing it's commit body and get custom test refspecs -> trigger deployment jobs from kaas/core
128 * manage refspecs through Jenkins Job Parameters
129 *
azvyagintseva12230a2020-06-05 13:24:06 +0300130 * @return (map)[* siTests: (string) final refspec for si-tests
vnaumov33747e12020-05-04 17:35:20 +0200131 * siPipelines: (string) final refspec for si-pipelines
132 * ]
133 */
134def checkCustomSIRefspec() {
vnaumovbdb90222020-05-04 18:25:50 +0200135 def common = new com.mirantis.mk.Common()
136
vnaumov33747e12020-05-04 17:35:20 +0200137 // Available triggers and its sane defaults
Владислав Наумов6c2afff2020-06-05 12:54:53 +0200138 def siTestsRefspec = env.SI_TESTS_REFSPEC ?: 'master'
139 def siPipelinesRefspec = env.SI_PIPELINES_REFSPEC ?: 'master'
140 def siTestsDockerImage = env.SI_TESTS_DOCKER_IMAGE ?: 'docker-dev-kaas-local.docker.mirantis.net/mirantis/kaas/si-test:master'
141 def commitMsg = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : ''
vnaumov33747e12020-05-04 17:35:20 +0200142
143 def siTestMatches = (commitMsg =~ /(\[si-tests-ref\s*refs\/changes\/.*?\])/)
144 def siPipelinesMatches = (commitMsg =~ /(\[si-pipelines-ref\s*refs\/changes\/.*?\])/)
145
146 if (siTestMatches.size() > 0) {
147 siTestsRefspec = siTestMatches[0][0].split('si-tests-ref')[1].replaceAll('[\\[\\]]', '').trim()
azvyagintseva12230a2020-06-05 13:24:06 +0300148 siTestsDockerImage = "docker-dev-local.docker.mirantis.net/review/" +
149 "kaas-si-test-${siTestsRefspec.split('/')[-2]}:${siTestsRefspec.split('/')[-1]}"
vnaumov33747e12020-05-04 17:35:20 +0200150 }
151 if (siPipelinesMatches.size() > 0) {
152 siPipelinesRefspec = siPipelinesMatches[0][0].split('si-pipelines-ref')[1].replaceAll('[\\[\\]]', '').trim()
153 }
154
155 common.infoMsg("""
156 kaas/si-pipelines will be fetched from: ${siPipelinesRefspec}
157 kaas/si-tests will be fetched from: ${siTestsRefspec}
azvyagintseva12230a2020-06-05 13:24:06 +0300158 kaas/si-tests as dockerImage will be fetched from: ${siTestsDockerImage}
Владислав Наумов5a523ef2020-07-29 13:33:38 +0200159 Keywords: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/""")
Владислав Наумов418042b2020-07-09 18:31:10 +0200160 return [siTests: siTestsRefspec, siPipelines: siPipelinesRefspec, siTestsDockerImage: siTestsDockerImage]
vnaumov33747e12020-05-04 17:35:20 +0200161}
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200162
Владислав Наумов9080f372020-06-08 13:57:16 +0200163/**
Владислав Наумов418042b2020-07-09 18:31:10 +0200164 * Parse additional configuration for kaas component CICD repo
Владислав Наумов30a516c2020-07-09 13:15:41 +0200165 * @param configurationFile (str) path to configuration file in yaml format
166 *
167 * @return (map)[ siTestsFeatureFlags (string) dedicated feature flags that will be used in SI tests,
168 * ]
169 */
170def parseKaaSComponentCIParameters(configurationFile){
171 def common = new com.mirantis.mk.Common()
172 def ciConfig = readYaml file: configurationFile
173 def ciSpec = [
174 siTestsFeatureFlags: env.SI_TESTS_FEATURE_FLAGS ?: '',
175 ]
176
177 if (ciConfig.containsKey('si-tests-feature-flags')) {
178 common.infoMsg("""SI tests feature flags customization detected,
179 results will be merged with existing flags: [${ciSpec['siTestsFeatureFlags']}] identification...""")
180
181 def ffMeta = ciSpec['siTestsFeatureFlags'].tokenize(',').collect { it.trim() }
182 ffMeta.addAll(ciConfig['si-tests-feature-flags'])
Владислав Наумов30a516c2020-07-09 13:15:41 +0200183
Владислав Наумовcb5ffca2020-07-14 15:28:36 +0200184 ciSpec['siTestsFeatureFlags'] = ffMeta.unique().join(',')
Владислав Наумов30a516c2020-07-09 13:15:41 +0200185 common.infoMsg("SI tests custom feature flags: ${ciSpec['siTestsFeatureFlags']}")
186 }
187
188 common.infoMsg("""Additional ci configuration parsed successfully:
189 siTestsFeatureFlags: ${ciSpec['siTestsFeatureFlags']}""")
190 return ciSpec
191}
192
193/**
194 * Determine if custom kaas core/pipelines refspec forwarded from gerrit change request
Владислав Наумов9080f372020-06-08 13:57:16 +0200195
Владислав Наумов5a523ef2020-07-29 13:33:38 +0200196 * Keyword list: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/
Владислав Наумов9080f372020-06-08 13:57:16 +0200197 * Used for components team to test component changes w/ custom Core refspecs using kaas/core deployment jobs
198 * Example scheme:
199 * New CR pushed in kubernetes/lcm-ansible -> parsing it's commit body and get custom test refspecs -> trigger deployment jobs from kaas/core
200 * manage refspecs through Jenkins Job Parameters
201 *
202 * @return (map)[ core: (string) final refspec for kaas/core
203 * corePipelines: (string) final refspec for pipelines in kaas/core
204 * ]
205 */
206def checkCustomCoreRefspec() {
207 def common = new com.mirantis.mk.Common()
208
209 // Available triggers and its sane defaults
210 def coreRefspec = env.KAAS_CORE_REFSPEC ?: 'master'
211 // by default using value of GERRIT_REFSPEC parameter in *kaas/core jobs*
212 def corePipelinesRefspec = env.KAAS_PIPELINE_REFSPEC ?: '\$GERRIT_REFSPEC'
213 def commitMsg = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : ''
214
215 def coreMatches = (commitMsg =~ /(\[core-ref\s*refs\/changes\/.*?\])/)
216 def corePipelinesMatches = (commitMsg =~ /(\[core-pipelines-ref\s*refs\/changes\/.*?\])/)
217
218 if (coreMatches.size() > 0) {
219 coreRefspec = coreMatches[0][0].split('core-ref')[1].replaceAll('[\\[\\]]', '').trim()
220 }
221 if (corePipelinesMatches.size() > 0) {
222 corePipelinesRefspec = corePipelinesMatches[0][0].split('core-pipelines-ref')[1].replaceAll('[\\[\\]]', '').trim()
223 }
224
225 common.infoMsg("""
226 kaas/core will be fetched from: ${coreRefspec}
227 kaas/core pipelines will be fetched from: ${corePipelinesRefspec}
Владислав Наумов5a523ef2020-07-29 13:33:38 +0200228 Keywords: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/""")
Владислав Наумов9080f372020-06-08 13:57:16 +0200229 return [core: coreRefspec, corePipelines: corePipelinesRefspec]
230}
231
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200232
233/**
234 * Trigger KaaS demo jobs based on AWS/OS providers with customized test suite, parsed from external sources (gerrit commit/jj vars)
Владислав Наумов5a523ef2020-07-29 13:33:38 +0200235 * Keyword list: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200236 * Used for components team to test component changes w/ customized SI tests/refspecs using kaas/core deployment jobs
237 *
Владислав Наумов418042b2020-07-09 18:31:10 +0200238 * @param: component (string) component name [iam, lcm, stacklight]
239 * @param: patchSpec (string) Patch for kaas/cluster releases in json format
240 * @param: configurationFile (string) Additional file for component repo CI config in yaml format
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200241 */
Владислав Наумов418042b2020-07-09 18:31:10 +0200242def triggerPatchedComponentDemo(component, patchSpec, configurationFile = '.ci-parameters.yaml') {
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200243 def common = new com.mirantis.mk.Common()
244 // Determine if custom trigger keywords forwarded from gerrit
245 def triggers = checkDeploymentTestSuite()
246 // Determine SI refspecs
247 def siRefspec = checkCustomSIRefspec()
Владислав Наумов9080f372020-06-08 13:57:16 +0200248 // Determine Core refspecs
249 def coreRefspec = checkCustomCoreRefspec()
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200250
Владислав Наумов418042b2020-07-09 18:31:10 +0200251 // Determine component repo ci configuration
252 def ciSpec = [:]
253 def componentFeatureFlags = env.SI_TESTS_FEATURE_FLAGS ?: ''
254 if (fileExists(configurationFile)) {
255 common.infoMsg('Component CI configuration file detected, parsing...')
256 ciSpec = parseKaaSComponentCIParameters(configurationFile)
257 componentFeatureFlags = ciSpec['siTestsFeatureFlags']
258 } else {
259 common.warningMsg('''Component CI configuration file is not exists,
Владислав Наумовc17dd552020-07-29 17:07:38 +0200260 several code-management features may be unavailable,
261 follow https://mirantis.jira.com/wiki/spaces/QA/pages/2310832276/SI-tests+feature+flags#%5BUpdated%5D-Component-CI
262 to create configuration file''')
Владислав Наумов418042b2020-07-09 18:31:10 +0200263 }
264
265
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200266 def jobs = [:]
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200267 def parameters = [
Владислав Наумов9080f372020-06-08 13:57:16 +0200268 string(name: 'GERRIT_REFSPEC', value: coreRefspec.core),
269 string(name: 'KAAS_PIPELINE_REFSPEC', value: coreRefspec.corePipelines),
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200270 string(name: 'SI_TESTS_REFSPEC', value: siRefspec.siTests),
Владислав Наумов418042b2020-07-09 18:31:10 +0200271 string(name: 'SI_TESTS_FEATURE_FLAGS', value: componentFeatureFlags),
Владислав Наумов4a5c3242020-06-08 14:36:11 +0200272 string(name: 'SI_PIPELINES_REFSPEC', value: siRefspec.siPipelines),
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200273 string(name: 'CUSTOM_RELEASE_PATCH_SPEC', value: patchSpec),
Владислав Наумов080d9412020-07-29 13:05:14 +0200274 booleanParam(name: 'UPGRADE_MGMT_CLUSTER', value: triggers.upgradeMgmtEnabled),
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200275 booleanParam(name: 'RUN_UI_E2E', value: triggers.runUie2eEnabled),
Владислав Наумов080d9412020-07-29 13:05:14 +0200276 booleanParam(name: 'RUN_MGMT_CFM', value: triggers.runMgmtConformanceEnabled),
277 booleanParam(name: 'DEPLOY_CHILD_CLUSTER', value: triggers.deployChildEnabled),
278 booleanParam(name: 'UPGRADE_CHILD_CLUSTER', value: triggers.upgradeChildEnabled),
279 booleanParam(name: 'RUN_CHILD_CFM', value: triggers.runChildConformanceEnabled),
Владислав Наумов905dd362020-06-08 16:37:01 +0200280 booleanParam(name: 'ALLOW_AWS_ON_DEMAND', value: triggers.awsOnDemandDemoEnabled),
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200281 ]
282
Владислав Наумовaa430612020-06-08 17:18:31 +0200283 def jobResults = []
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200284 jobs["kaas-core-openstack-patched-${component}"] = {
Владислав Наумовf86b1112020-06-09 14:04:48 +0200285 try {
286 common.infoMsg('Deploy: patched KaaS demo with Openstack provider')
Владислав Наумов4aa112d2020-06-16 18:52:21 +0200287 os_job_info = build job: "kaas-testing-core-openstack-workflow-${component}", parameters: parameters, wait: true
288 def build_description = os_job_info.getDescription()
Владислав Наумовd044e842020-06-17 15:33:43 +0200289 def build_result = os_job_info.getResult()
290 jobResults.add(build_result)
291
Владислав Наумовf86b1112020-06-09 14:04:48 +0200292 if (build_description) {
293 currentBuild.description += build_description
294 }
295 } finally {
Владислав Наумов6d741fa2020-06-17 17:35:43 +0200296 common.infoMsg('Patched KaaS demo with Openstack provider finished')
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200297 }
298 }
299 if (triggers.awsOnDemandDemoEnabled) {
Владислав Наумов59281952020-07-29 16:43:49 +0200300 common.infoMsg('AWS demo triggered, need to sync artifacts in the public-ci cdn..')
301 switch (component) {
302 case 'iam':
303 build job: 'cdn-binary-dev-replication-iam', propagate: true, wait: true
304 break
305 case 'lcm':
306 build job: 'cdn-binary-dev-replication-lcm', propagate: true, wait: true
307 break
308 }
309
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200310 jobs["kaas-core-aws-patched-${component}"] = {
Владислав Наумовf86b1112020-06-09 14:04:48 +0200311 try {
312 common.infoMsg('Deploy: patched KaaS demo with AWS provider')
Владислав Наумов4aa112d2020-06-16 18:52:21 +0200313 aws_job_info = build job: "kaas-testing-core-aws-workflow-${component}", parameters: parameters, wait: true
314 def build_description = aws_job_info.getDescription()
Владислав Наумовd044e842020-06-17 15:33:43 +0200315 def build_result = aws_job_info.getResult()
316 jobResults.add(build_result)
317
Владислав Наумовf86b1112020-06-09 14:04:48 +0200318 if (build_description) {
319 currentBuild.description += build_description
320 }
321 } finally {
Владислав Наумов6d741fa2020-06-17 17:35:43 +0200322 common.infoMsg('Patched KaaS demo with AWS provider finished')
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200323 }
324 }
325 }
326
327 common.infoMsg('Trigger KaaS demo deployments according to defined provider set')
328 // Limit build concurency workaround examples: https://issues.jenkins-ci.org/browse/JENKINS-44085
329 parallel jobs
Владислав Наумовaa430612020-06-08 17:18:31 +0200330
331 if (jobResults.contains('FAILURE')) {
Владислав Наумовf86b1112020-06-09 14:04:48 +0200332 common.infoMsg('One of parallel downstream jobs is failed, mark executor job as failed')
Владислав Наумовaa430612020-06-08 17:18:31 +0200333 currentBuild.result = 'FAILURE'
334 }
Владислав Наумов2a982ff2020-06-02 19:06:46 +0200335}
Владислав Наумов30a516c2020-07-09 13:15:41 +0200336
337