From f0847e1e10314db6c53dc9631585c4cb53db4fab Mon Sep 17 00:00:00 2001 From: amd-garydeng Date: Wed, 18 Dec 2024 16:06:05 -0700 Subject: [PATCH] use jenkins xml config instead of hard code --- .jenkins/staticanalysis.groovy | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.jenkins/staticanalysis.groovy b/.jenkins/staticanalysis.groovy index 46ac0691..d7d6cefd 100644 --- a/.jenkins/staticanalysis.groovy +++ b/.jenkins/staticanalysis.groovy @@ -39,8 +39,26 @@ def runCI = ci: { String urlJobName = auxiliary.getTopJobName(env.BUILD_URL) - properties(auxiliary.addCommonProperties([pipelineTriggers([cron('0 1 * * 6')])])) - stage(urlJobName) { - runCI([ubuntu20:['any']], urlJobName) + def propertyList = ["compute-rocm-dkms-no-npi-hipclang":[pipelineTriggers([cron('0 1 * * 0')])], + "rocm-docker":[]] + propertyList = auxiliary.appendPropertyList(propertyList) + + def jobNameList = ["compute-rocm-dkms-no-npi-hipclang":[]] + jobNameList = auxiliary.appendJobNameList(jobNameList) + + propertyList.each + { + jobName, property-> + if (urlJobName == jobName) + properties(auxiliary.addCommonProperties(property)) + } + + jobNameList.each + { + jobName, nodeDetails-> + if (urlJobName == jobName) + stage(jobName) { + runCI(nodeDetails, jobName) + } } }