Commit 77848357 by 李二毛

Merge branch 'development' into 'staging'

修改方法RollEnvironmentOf

See merge request liermao/microservice-autodevopspipelines!99
parents d0bdd308 65289e1c
Pipeline #4324 passed with stages
in 1 minute 7 seconds
......@@ -141,8 +141,9 @@ function IsPublishableOf()
# get updating's environment of branch
function RollEnvironmentOf()
{
FirstCharUpperCase ${CI_COMMIT_REF_NAME} branch
declare env=($(grep -oP "(?<=${branch}>)[^<]+" "./devops/branch.env.props"))
declare branch=${CI_COMMIT_REF_NAME}
declare name=($(grep -oP "(?<=${branch}>)[^<]+" "./devops/branch.env.props"))
FirstCharUpperCase ${name} env
eval $1="${env}"
}
......
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