Project 'liermao/microservice-autodevopspipelines' was moved to 'lichunsheng/microservice-autodevopspipelines'. Please update any links and bookmarks that may still have the old path.
Commit d915c429 by 据说甜蜜呢

修改参数错误

parent cfc1c031
Pipeline #4178 passed with stage
in 23 seconds
......@@ -8,7 +8,7 @@ source ./devops/PipeLines/Functions.core.sh
GetAppName appName
echo "Start building the gateway for ${appName} route dynamically..."
echo "Start dynamically building the gateway route for ${appName}..."
GetMajor major
GetNameSpace namespace
......@@ -68,7 +68,6 @@ function createRoute()
set -e
}
declare serviceNameWithVersion=""
declare serviceFdn=""
declare serviceUrl=""
declare serviceRouteUrl=""
......@@ -77,12 +76,12 @@ do
GetServiceName ${servicePrefix} serviceName
# replace . to -, compatible with k8s.
serviceName=${serviceName/\./\-}
serviceNameWithVersion="${serviceName}-${releaseVersion}"
ToLower "${serviceName}-${releaseVersion}" serviceNameWithVersion
serviceFdn="${serviceName}.${fdnOfK8s}"
serviceUrl="http://${serviceFdn}/api/${servicePrefix}"
echo "Begin creating service[${serviceNameWithVersion}]"
createService ${kongServiceUrl} ${maxConnectTime} ${maxTime} ${retryCount} ${serviceNameWithVersion} ${serviceUrl}
createService ${kongServiceBaseUrl} ${maxConnectTime} ${maxTime} ${retryCount} ${serviceNameWithVersion} ${serviceUrl}
echo "Begin creating route of service[${serviceNameWithVersion}]"
serviceRouteUrl="/api/${releaseVersion}/${servicePrefix}"
......
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