Project 'liermao/microservice-autodevopspipelines' was moved to 'lichunsheng/microservice-autodevopspipelines'. Please update any links and bookmarks that may still have the old path.
Commit 83143c0d by 李二毛

Merge branch 'development' into 'rel/major'

重命名

See merge request liermao/microservice-autodevopspipelines!33
parents 4ad244ac 1ac4179b
Pipeline #4130 failed with stages
in 34 seconds
...@@ -58,15 +58,15 @@ function GetCiCdSettings() ...@@ -58,15 +58,15 @@ function GetCiCdSettings()
function GetMajor() function GetMajor()
{ {
declare m=($(grep -oP '(?<=VersionMajor>)[^<]+' "devops/version.props")) declare m=($(grep -oP '(?<=Major>)[^<]+' "./devops/version.props"))
eval $1=${m} eval $1=${m}
} }
function GetVersion() function GetVersion()
{ {
declare major=($(grep -oP '(?<=VersionMajor>)[^<]+' "./devops/version.props")) declare major=($(grep -oP '(?<=Major>)[^<]+' "./devops/version.props"))
declare minor=($(grep -oP '(?<=VersionMinor>)[^<]+' "./devops/version.props")) declare minor=($(grep -oP '(?<=Minor>)[^<]+' "./devops/version.props"))
declare patch=($(grep -oP '(?<=VersionPatch>)[^<]+' "./devops/version.props")) declare patch=($(grep -oP '(?<=Patch>)[^<]+' "./devops/version.props"))
eval $1="${major}.${minor}.${patch}" eval $1="${major}.${minor}.${patch}"
} }
......
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