Skip to content

Commit

Permalink
add groovy for static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
TorreZuk committed Jul 26, 2024
1 parent 8b51f2c commit bce308b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .jenkins/staticanalysis.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env groovy
// This shared library is available at https://github.com/ROCmSoftwarePlatform/rocJENKINS/
@Library('rocJenkins@pong') _

// This is file for internal AMD use.
// If you are interested in running your own Jenkins, please raise a github issue for assistance.

import com.amd.project.*
import com.amd.docker.*
import java.nio.file.Path

def runCI =
{
nodeDetails, jobName->

def prj = new rocProject('rocBLAS-Examples', 'Static Analysis')

// Define test architectures, optional rocm version argument is available
def nodes = new dockerNodes(nodeDetails, jobName, prj)

boolean formatCheck = true
boolean staticAnalysis = true

buildProject(prj, formatCheck, nodes.dockerArray, null, null, null, staticAnalysis)
}

ci: {
String urlJobName = auxiliary.getTopJobName(env.BUILD_URL)

properties(auxiliary.addCommonProperties([pipelineTriggers([cron('0 1 * * 2')])]))
stage(urlJobName) {
runCI([ubuntu20:['any']], urlJobName)
}
}

0 comments on commit bce308b

Please sign in to comment.