Commit 31a0516b authored by illsilin's avatar illsilin
Browse files

fix groovy syntax

parent 2eb21500
...@@ -263,15 +263,18 @@ def cmake_build(Map conf=[:]){ ...@@ -263,15 +263,18 @@ def cmake_build(Map conf=[:]){
echo cmd echo 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}" != "") {
try { try {
sh """${redis_pre_setup_cmd}""" def cmd1 = conf.get("cmd1", """${redis_pre_setup_cmd}""")
sh cmd1
} }
catch(err){ catch(Exception err){
echo "could not connect to redis server. using local sccache." echo "could not connect to redis server: ${err.getMessage()}. using local sccache."
sh """${local_pre_setup_cmd}""" def cmd2 = conf.get("cmd2", """${local_pre_setup_cmd}""")
sh cmd2
} }
} }
else{ else{
sh """${pre_setup_cmd}""" def cmd3 = conf.get("cmd3", """${pre_setup_cmd}""")
sh cmd3
} }
dir("build"){ dir("build"){
sh cmd sh cmd
......
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