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
composable_kernel
Commits
a7d426a6
Commit
a7d426a6
authored
Oct 31, 2023
by
illsilin
Browse files
fix groovy syntax
parent
3a78d556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Jenkinsfile
Jenkinsfile
+12
-8
No files found.
Jenkinsfile
View file @
a7d426a6
...
@@ -213,9 +213,8 @@ def cmake_build(Map conf=[:]){
...
@@ -213,9 +213,8 @@ def cmake_build(Map conf=[:]){
if
(
setup_args
.
contains
(
"gfx94"
)){
if
(
setup_args
.
contains
(
"gfx94"
)){
invocation_tag
=
"gfx94"
invocation_tag
=
"gfx94"
}
}
local_pre_setup_cmd
=
pre_setup_cmd
if
(
check_host
()
&&
params
.
USE_SCCACHE
&&
"${env.CK_SCCACHE}"
!=
"null"
&&
"${invocation_tag}"
!=
""
)
{
if
(
check_host
()
&&
params
.
USE_SCCACHE
&&
"${env.CK_SCCACHE}"
!=
"null"
&&
"${invocation_tag}"
!=
""
)
{
redis_pre_setup_cmd
=
pre_setup_cmd
+
"""
def
redis_pre_setup_cmd
=
pre_setup_cmd
+
"""
#!/bin/bash
#!/bin/bash
export ROCM_PATH=/opt/rocm
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
export SCCACHE_ENABLED=true
...
@@ -231,7 +230,7 @@ def cmake_build(Map conf=[:]){
...
@@ -231,7 +230,7 @@ def cmake_build(Map conf=[:]){
stunnel ../script/redis-cli.conf
stunnel ../script/redis-cli.conf
../script/sccache_wrapper.sh --enforce_redis
../script/sccache_wrapper.sh --enforce_redis
"""
"""
local_pre_setup_cmd
=
pre_setup_cmd
+
"""
def
local_pre_setup_cmd
=
pre_setup_cmd
+
"""
#!/bin/bash
#!/bin/bash
export ROCM_PATH=/opt/rocm
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
export SCCACHE_ENABLED=true
...
@@ -262,12 +261,17 @@ def cmake_build(Map conf=[:]){
...
@@ -262,12 +261,17 @@ def cmake_build(Map conf=[:]){
"""
)
"""
)
echo
cmd
echo
cmd
try
{
if
(
check_host
()
&&
params
.
USE_SCCACHE
&&
"${env.CK_SCCACHE}"
!=
"null"
&&
"${invocation_tag}"
!=
""
)
{
sh
"${redis_pre_setup_cmd}"
try
{
sh
"""${redis_pre_setup_cmd}"""
}
catch
(
err
){
echo
"could not connect to redis server. using local sccache."
sh
"""${local_pre_setup_cmd}"""
}
}
}
catch
(
err
){
else
{
echo
"could not connect to redis server. using local sccache."
sh
"""${pre_setup_cmd}"""
sh
"${local_pre_setup_cmd}"
}
}
sh
cmd
sh
cmd
...
...
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