Commit aea0a1a6 by 李二毛

Merge branch 'development' into 'rel/major'

添加方法GetServicePrefix

See merge request liermao/microservice-autodevopspipelines!16
parents c3c732b8 c14ea653
Pipeline #4094 failed with stages
in 28 seconds
......@@ -43,11 +43,9 @@ function CI()
}
GetServices services
declare servicePrefix=""
declare serviceName=""
for service in ${services}
do
servicePrefix=($(echo ${service} | awk '{print $9}'))
GetServicePrefix servicePrefix
IsPublishableOf ${servicePrefix} isPublishable
GetServiceName "${servicePrefix}" serviceName
CI "${servicePrefix}" "./src/${servicePrefix}/${serviceName}.csproj"
......
......@@ -15,6 +15,13 @@ function GetServiceName()
eval $2="${name}"
}
function GetServicePrefix()
{
declare service=$1
declare prefix=($(echo ${service} | awk '{print $9}'))
eval $2="${prefix}"
}
function GetAppName()
{
declare name=($(grep -oP '(?<=AppName>)[^<]+' "./devops/app.props"))
......
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