Commit b82f62ae authored by illsilin's avatar illsilin
Browse files

move the presetup definitions out of if condition

parent 6a999616
......@@ -214,9 +214,10 @@ def cmake_build(Map conf=[:]){
invocation_tag="gfx94"
}
echo "invocation tag: ${invocation_tag}"
def redis_pre_setup_cmd = pre_setup_cmd
def local_pre_setup_cmd = pre_setup_cmd
if(check_host() && params.USE_SCCACHE && "${env.CK_SCCACHE}" != "null" && "${invocation_tag}" != "") {
def redis_pre_setup_cmd = pre_setup_cmd + """
redis_pre_setup_cmd = pre_setup_cmd + """
#!/bin/bash
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
......@@ -232,7 +233,7 @@ def cmake_build(Map conf=[:]){
stunnel ../script/redis-cli.conf
../script/sccache_wrapper.sh --enforce_redis
"""
def local_pre_setup_cmd = pre_setup_cmd + """
local_pre_setup_cmd = pre_setup_cmd + """
#!/bin/bash
export ROCM_PATH=/opt/rocm
export SCCACHE_ENABLED=true
......@@ -244,7 +245,7 @@ def cmake_build(Map conf=[:]){
export SCCACHE_REDIS="redis://${env.CK_SCCACHE}"
echo "connect = ${env.CK_SCCACHE}" >> ../script/redis-cli.conf
export SCCACHE_C_CUSTOM_CACHE_BUSTER="${invocation_tag}"
echo \$SCCACHE_C_CUSTOM_CACHE_BUSTER
echo \$SCCACHE_C_CUSTOM_CACHE_BUSTER"
stunnel ../script/redis-cli.conf
../script/sccache_wrapper.sh
"""
......
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