Skip to content

Commit

Permalink
Update precheckincuda job settings (#524)
Browse files Browse the repository at this point in the history
* Update precheckincuda job settings

Get property and job name list from settings for run

* Define propertyList
  • Loading branch information
samjwu authored Sep 18, 2024
1 parent 407456e commit 740ebc7
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .jenkins/precheckin-cuda.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,36 @@ def runCI =
ci: {
String urlJobName = auxiliary.getTopJobName(env.BUILD_URL)

def propertyList = [:]
propertyList = auxiliary.appendPropertyList(propertyList)

def jobNameList = [:]
jobNameList = auxiliary.appendJobNameList(jobNameList, 'hipSPARSE')

propertyList.each
{
jobName, property->
if (urlJobName == jobName)
{
properties(auxiliary.addCommonProperties(property))
}
}

jobNameList.each
{
jobName, nodeDetails->
if (urlJobName == jobName)
stage(jobName) {
runCI(nodeDetails, jobName)
}
}

// For url job names that are not listed by the jobNameList i.e. compute-rocm-dkms-no-npi-1901
if(!jobNameList.keySet().contains(urlJobName))
{
properties(auxiliary.addCommonProperties([pipelineTriggers([cron('0 1 * * 6')])]))
runCI(['ubuntu20-cuda11':['anycuda']], urlJobName)
stage(urlJobName) {
runCI(['ubuntu22-cuda12':['anycuda']], urlJobName)
}
}
}

0 comments on commit 740ebc7

Please sign in to comment.