-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
executable file
·83 lines (57 loc) · 2.44 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Hello') {
steps {
echo "Start Build..."
echo 'Hello World'
echo "Finish Build..."
}
}
}
}
// @Library('rocJenkins') _
// import com.amd.project.*
// import com.amd.docker.*
////////////////////////////////////////////////////////////////////////
// import java.nio.file.Path;
// rocRANDCI:
// {
// def rocrand = new rocProject('rocRAND')
// def nodes = new dockerNodes(['ubuntu && gfx803', 'gfx900 && centos7', 'gfx906 && centos7', 'sles && gfx906', 'gfx908 && ubuntu'], rocrand)
// boolean formatCheck = false
// def compileCommand =
// {
// platform, project->
// project.paths.construct_build_prefix()
// rocrand.paths.build_command = platform.jenkinsLabel.contains('hip-clang') ? './install -c --hip-clang' : './install -c'
// rocrand.compiler.compiler_path = platform.jenkinsLabel.contains('hip-clang') ? '/opt/rocm/bin/hipcc' : '/opt/rocm/bin/hcc'
// def command = """#!/usr/bin/env bash
// set -x
// cd ${project.paths.project_build_prefix}
// LD_LIBRARY_PATH=/opt/rocm/hcc/lib/ CXX=${project.compiler.compiler_path} ${project.paths.build_command}
// """
// platform.runCommand(this, command)
// }
// def testCommand =
// {
// platform, project->
// String sudo = auxiliary.sudo(platform.jenkinsLabel)
// def command = """#!/usr/bin/env bash
// set -x
// cd ${project.paths.project_build_prefix}/build/release
// make -j4
// ${sudo} LD_LIBRARY_PATH=/opt/rocm/lib/ ctest --output-on-failure
// """
// platform.runCommand(this, command)
// }
// def packageCommand =
// {
// platform, project->
// def packageHelper = platform.makePackage(platform.jenkinsLabel,"${project.paths.project_build_prefix}/build/release")
// platform.runCommand(this, packageHelper[0])
// platform.archiveArtifacts(this, packageHelper[1])
// }
// buildProject(rocrand, formatCheck, nodes.dockerArray, compileCommand, testCommand, packageCommand)
// }