Project 'liermao/microservice-autodevopspipelines' was moved to 'lichunsheng/microservice-autodevopspipelines'. Please update any links and bookmarks that may still have the old path.
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() ...@@ -43,11 +43,9 @@ function CI()
} }
GetServices services GetServices services
declare servicePrefix=""
declare serviceName=""
for service in ${services} for service in ${services}
do do
servicePrefix=($(echo ${service} | awk '{print $9}')) GetServicePrefix servicePrefix
IsPublishableOf ${servicePrefix} isPublishable IsPublishableOf ${servicePrefix} isPublishable
GetServiceName "${servicePrefix}" serviceName GetServiceName "${servicePrefix}" serviceName
CI "${servicePrefix}" "./src/${servicePrefix}/${serviceName}.csproj" CI "${servicePrefix}" "./src/${servicePrefix}/${serviceName}.csproj"
......
...@@ -15,6 +15,13 @@ function GetServiceName() ...@@ -15,6 +15,13 @@ function GetServiceName()
eval $2="${name}" eval $2="${name}"
} }
function GetServicePrefix()
{
declare service=$1
declare prefix=($(echo ${service} | awk '{print $9}'))
eval $2="${prefix}"
}
function GetAppName() function GetAppName()
{ {
declare name=($(grep -oP '(?<=AppName>)[^<]+' "./devops/app.props")) 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