Commit 71fdde1a authored by Paul's avatar Paul
Browse files

Use withEnv

parent 584b55b9
...@@ -20,22 +20,22 @@ def rocmtestnode(variant, name, body) { ...@@ -20,22 +20,22 @@ def rocmtestnode(variant, name, body) {
} }
} }
node(name) { node(name) {
env.HSA_ENABLE_SDMA=0 withEnv(['HSA_ENABLE_SDMA=0', 'MIOPEN_DEBUG_GCN_ASM_KERNELS=0']) {
env.MIOPEN_DEBUG_GCN_ASM_KERNELS=0 stage("checkout ${variant}") {
stage("checkout ${variant}") { checkout scm
checkout scm }
} stage("image ${variant}") {
stage("image ${variant}") { try {
try { docker.build("${image}", '.')
docker.build("${image}", '.') } catch(Exception ex) {
} catch(Exception ex) { docker.build("${image}", '--no-cache .')
docker.build("${image}", '--no-cache .')
}
} }
} withDockerContainer(image: image, args: '--device=/dev/kfd --device=/dev/dri --group-add video --cap-add SYS_PTRACE') {
withDockerContainer(image: image, args: '--device=/dev/kfd --device=/dev/dri --group-add video --cap-add SYS_PTRACE') { timeout(time: 1, unit: 'HOURS') {
timeout(time: 1, unit: 'HOURS') { body(cmake_build)
body(cmake_build) }
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment