Skip to content

Commit

Permalink
use jenkins xml instead of hardcoded (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
amd-garydeng authored Jan 17, 2025
1 parent 81c0c9c commit b290798
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .jenkins/staticanalysis.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,26 @@ def runCI =
ci: {
String urlJobName = auxiliary.getTopJobName(env.BUILD_URL)

properties(auxiliary.addCommonProperties([pipelineTriggers([cron('0 1 * * 2')])]))
stage(urlJobName) {
runCI([ubuntu20:['cpu']], 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)
}
}
}

0 comments on commit b290798

Please sign in to comment.