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
246f7514
Project 'liermao/microservice-autodevopspipelines' was moved to 'lichunsheng/microservice-autodevopspipelines'. Please update any links and bookmarks that may still have the old path.
Commit
246f7514
authored
Jan 10, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加方法DynamicVariableValueOf
parent
6d290dcd
Pipeline
#4237
passed with stage
in 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
devops/PipeLines/Functions.common.sh
+9
-0
devops/PipeLines/Updating/001_AnalysingGitChanges.sh
+5
-1
No files found.
devops/PipeLines/Functions.common.sh
View file @
246f7514
...
...
@@ -16,4 +16,12 @@ function Replace()
declare
targetExpr
=
$3
declare
output
=
${
input
//
${
sourceExpr
}
/
${
targetExpr
}}
eval
$4
=
${
output
}
}
function
DynamicVariableValueOf
()
{
declare
prefix
=
$1
declare
suffix
=
$2
eval
"output=
\$
$prefix$suffix
"
eval
$3
=
${
output
}
}
\ No newline at end of file
devops/PipeLines/Updating/001_AnalysingGitChanges.sh
View file @
246f7514
...
...
@@ -2,6 +2,10 @@
set
-e
IFS
=
$'
\n\n
'
# Import external functions
chmod +x ./devops/PipeLines/Functions.common.sh
source
./devops/PipeLines/Functions.common.sh
function
AddHeadConfig
()
{
# sync config for later retries, not affected by cross-job.
...
...
@@ -62,7 +66,7 @@ else
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
do
# Notes: Hard release[manual control], will not analyz changes.
isPublishable
=
$(
eval echo
${
servicePrefix
}
Publishable
)
DynamicVariableValueOf
"
${
servicePrefix
}
"
"Publishable"
isPublishable
if
[
"
${
isPublishable
}
"
==
"1"
]
;
then
AddConfig
"
${
servicePrefix
}
"
"
${
isPublishable
}
"
...
...
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