Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
microservice-autodevopspipelines
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李春生
microservice-autodevopspipelines
Commits
65289e1c
Commit
65289e1c
authored
6 years ago
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改方法RollEnvironmentOf
parent
0aa7af74
Pipeline
#4323
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
devops/PipeLines/Functions.core.sh
+3
-2
No files found.
devops/PipeLines/Functions.core.sh
View file @
65289e1c
...
...
@@ -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
}
"
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment