Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
65bd2b18
Commit
65bd2b18
authored
Oct 06, 2020
by
Paul
Browse files
Use gitStatusWrapper
parent
17cde00d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
26 deletions
+19
-26
Jenkinsfile
Jenkinsfile
+19
-26
No files found.
Jenkinsfile
View file @
65bd2b18
...
@@ -32,18 +32,20 @@ def rocmtestnode(Map conf) {
...
@@ -32,18 +32,20 @@ def rocmtestnode(Map conf) {
stage
(
"checkout ${variant}"
)
{
stage
(
"checkout ${variant}"
)
{
checkout
scm
checkout
scm
}
}
pre
()
gitStatusWrapper
(
credentialsId:
'github-app-rocm-mici'
,
gitHubContext:
"Jenkins - ${variant}"
,
account:
'ROCmSoftwarePlatform'
,
repo:
'AMDMIGraphX'
)
{
stage
(
"image ${variant}"
)
{
pre
()
try
{
stage
(
"image ${variant}"
)
{
docker
.
build
(
"${image}"
,
"${docker_build_args} ."
)
try
{
}
catch
(
Exception
ex
)
{
docker
.
build
(
"${image}"
,
"${docker_build_args} ."
)
docker
.
build
(
"${image}"
,
"${docker_build_args} --no-cache ."
)
}
catch
(
Exception
ex
)
{
docker
.
build
(
"${image}"
,
"${docker_build_args} --no-cache ."
)
}
}
}
}
withDockerContainer
(
image:
image
,
args:
"--device=/dev/kfd --device=/dev/dri --group-add video --cap-add SYS_PTRACE ${docker_args}"
)
{
withDockerContainer
(
image:
image
,
args:
"--device=/dev/kfd --device=/dev/dri --group-add video --cap-add SYS_PTRACE ${docker_args}"
)
{
timeout
(
time:
1
,
unit:
'HOURS'
)
{
timeout
(
time:
1
,
unit:
'HOURS'
)
{
body
(
cmake_build
)
body
(
cmake_build
)
}
}
}
}
}
}
}
...
@@ -136,22 +138,13 @@ rocmtest tidy: rocmnode('rocmtest') { cmake_build ->
...
@@ -136,22 +138,13 @@ rocmtest tidy: rocmnode('rocmtest') { cmake_build ->
}
}
},
hip_clang_tidy:
rocmhipclangnode
(
'rocmtest'
)
{
cmake_build
->
},
hip_clang_tidy:
rocmhipclangnode
(
'rocmtest'
)
{
cmake_build
->
stage
(
'Hip Clang Tidy'
)
{
stage
(
'Hip Clang Tidy'
)
{
try
{
sh
'''
sh
'''
rm -rf build
rm -rf build
mkdir build
mkdir build
cd build
cd build
CXX=/opt/rocm/llvm/bin/clang++ cmake ..
CXX=/opt/rocm/llvm/bin/clang++ cmake ..
make -j$(nproc) -k analyze
make -j$(nproc) -k analyze
'''
'''
}
finally
{
recordIssues
(
aggregatingResults:
true
,
enabledForFailure:
true
,
referenceJobName:
'MLLibs/AMDMIGraphX/develop'
,
tools:
[
cmake
(),
clang
(),
sphinxBuild
()]
)
}
}
}
},
gcc5:
rocmnode
(
'rocmtest'
)
{
cmake_build
->
},
gcc5:
rocmnode
(
'rocmtest'
)
{
cmake_build
->
stage
(
'GCC 5 Debug'
)
{
stage
(
'GCC 5 Debug'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment