Commit 351d142f by 李二毛

Merge branch 'development' into 'rel/major'

修改方法GetNameSpace

See merge request liermao/microservice-autodevopspipelines!39
parents 3f6a0f96 9e2f1a55
Pipeline #4147 failed with stages
in 17 seconds
...@@ -46,7 +46,7 @@ function GetAppName() ...@@ -46,7 +46,7 @@ function GetAppName()
function GetNameSpace() function GetNameSpace()
{ {
GetMajor major GetMajor major
declare namespace=($(grep -oP '(?<=Namespace>)[^<]+' "devops/app.props")) declare namespace=($(grep -oP '(?<=NameSpace>)[^<]+' "./devops/app.props"))
declare namespaceOfK8s=$(echo "${namespace}-v${major}" | tr 'A-Z' 'a-z') declare namespaceOfK8s=$(echo "${namespace}-v${major}" | tr 'A-Z' 'a-z')
eval $1=${namespaceOfK8s} eval $1=${namespaceOfK8s}
} }
......
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