| 1 |
#!/usr/bin/env groovy |
| 2 |
// This shared library is available at https://github.com/ROCm/rocJENKINS/ |
| 3 |
@Library('rocJenkins@pong') _ |
| 4 |
|
| 5 |
// This is file for internal AMD use. |
| 6 |
// If you are interested in running your own Jenkins, please raise a github issue for assistance. |
| 7 |
|
| 8 |
import com.amd.project.* |
| 9 |
import com.amd.docker.* |
| 10 |
import java.nio.file.Path |
| 11 |
|
| 12 |
def runCompileCommand(platform, project, jobName, boolean debug=false) |
| 13 |
{ |
| 14 |
project.paths.construct_build_prefix() |
| 15 |
} |
| 16 |
|
| 17 |
def runCI = |
| 18 |
{ |
| 19 |
nodeDetails, jobName-> |
| 20 |
|
| 21 |
def prj = new rocProject('hipCUB', 'StaticAnalysis') |
| 22 |
|
| 23 |
// Define test architectures, optional rocm version argument is available |
| 24 |
def nodes = new dockerNodes(nodeDetails, jobName, prj) |
| 25 |
|
| 26 |
boolean formatCheck = false |
| 27 |
boolean staticAnalysis = true |
| 28 |
|
| 29 |
def compileCommand = |
| 30 |
{ |
| 31 |
platform, project-> |
| 32 |
|
| 33 |
runCompileCommand(platform, project, jobName, false) |
| 34 |
} |
| 35 |
|
| 36 |
buildProject(prj , formatCheck, nodes.dockerArray, compileCommand, null, null, staticAnalysis) |
| 37 |
} |
| 38 |
|
| 39 |
ci: { |
| 40 |
String urlJobName = auxiliary.getTopJobName(env.BUILD_URL) |
| 41 |
|
| 42 |
properties(auxiliary.addCommonProperties([pipelineTriggers([cron('0 1 * * 6')])])) |
| 43 |
stage(urlJobName) { |
| 44 |
runCI([ubuntu20:['any']], urlJobName) |
| 45 |
} |
| 46 |
} |