Commit e8638e3c by 据说甜蜜呢

修改方法IsPublishableOf

parent 4f628fc7
Pipeline #4247 passed with stage
in 17 seconds
......@@ -135,5 +135,5 @@ function IsPublishableOf()
{
declare prefix=$1
declare isP=($(grep -oP "(?<=${prefix}Publishable>)[^<]+" "/tmp/cicd.props"))
eval $2=isP
eval $2="${isP}"
}
\ No newline at end of file
......@@ -27,14 +27,13 @@ else
GetServiceName ${servicePrefix} serviceName
if [ "${isPublishable}" == "1" ];
then
GetServiceDir ${servicePrefix} ${serviceName} serviceDir
CreateConfig ${Environment} ${namespace} ${k8sApiServer} ${serviceDir} ${servicePrefix} ${accessToken}
else
echo ""
echo "Tips: ${serviceName} will not be synced config!!!"
fi
then
GetServiceDir ${servicePrefix} ${serviceName} serviceDir
CreateConfig ${Environment} ${namespace} ${k8sApiServer} ${serviceDir} ${servicePrefix} ${accessToken}
else
echo ""
echo "Tips: ${serviceName} will not be synced config!!!"
fi
done
fi
......
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