Commit 41acf3cb by 李二毛

Merge branch 'development' into 'rel/major'

修改方法GetNameSpace

See merge request liermao/microservice-autodevopspipelines!40
parents 351d142f 4607d90c
Pipeline #4151 failed with stages
in 20 seconds
...@@ -46,9 +46,9 @@ function GetAppName() ...@@ -46,9 +46,9 @@ function GetAppName()
function GetNameSpace() function GetNameSpace()
{ {
GetMajor major GetMajor major
declare namespace=($(grep -oP '(?<=NameSpace>)[^<]+' "./devops/app.props")) declare ns=($(grep -oP '(?<=NameSpace>)[^<]+' "./devops/app.props"))
declare namespaceOfK8s=$(echo "${namespace}-v${major}" | tr 'A-Z' 'a-z') declare nsOfK8s=$(echo "${ns}-v${major}" | tr 'A-Z' 'a-z')
eval $1=${namespaceOfK8s} eval $1=${nsOfK8s}
} }
function GetSolutionName() function GetSolutionName()
......
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