Commit c3c732b8 by 李二毛

Merge branch 'development' into 'rel/major'

Development

See merge request liermao/microservice-autodevopspipelines!15
parents 9774ad39 3b3b9399
Pipeline #4091 failed with stages
in 45 seconds
...@@ -4,14 +4,14 @@ set -e ...@@ -4,14 +4,14 @@ set -e
function GetServices() function GetServices()
{ {
declare svcs=$(ls -l ./src/Services | awk 'NR>1') declare svcs=($(ls -l ./src/Services | awk 'NR>1'))
eval $1="${svcs}" eval $1="${svcs}"
} }
function GetServiceName() function GetServiceName()
{ {
declare prefix=${1} declare prefix=${1}
declare name=$(ls ./src/Services/${prefix}|head -n 1|xargs -d '/' echo) declare name=($(ls ./src/Services/${prefix}|head -n 1|xargs -d '/' echo))
eval $2="${name}" eval $2="${name}"
} }
...@@ -49,11 +49,10 @@ function GetMajor() ...@@ -49,11 +49,10 @@ function GetMajor()
function GetVersion() function GetVersion()
{ {
declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "devops/version.props")) declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "./devops/version.props"))
declare minor=($(grep -oP '(?<=VersionMinor>)[^<]+' "devops/version.props")) declare minor=($(grep -oP '(?<=VersionMinor>)[^<]+' "./devops/version.props"))
declare patch=($(grep -oP '(?<=VersionPatch>)[^<]+' "devops/version.props")) declare patch=($(grep -oP '(?<=VersionPatch>)[^<]+' "./devops/version.props"))
declare v=${major}.${minor}.${patch} eval $1=${major}.${minor}.${patch}
eval $1=${v}
} }
function GetImageRegistrySettings() function GetImageRegistrySettings()
......
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