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
58092a6b
Commit
58092a6b
authored
Jan 10, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加判断
parent
2660a9ae
Pipeline
#4229
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
devops/PipeLines/Updating/001_AnalysingGitChanges.sh
+8
-7
No files found.
devops/PipeLines/Updating/001_AnalysingGitChanges.sh
View file @
58092a6b
...
...
@@ -17,9 +17,7 @@ function AddConfig()
declare
name
=
${
1
}
declare
publishable
=
${
2
}
if
[
"
${
publishable
}
"
==
"1"
]
;
then
echo
"<
${
name
}
Publishable>
${
publishable
}
</
${
name
}
Publishable>"
>>
/tmp/cicd.props
fi
echo
"<
${
name
}
Publishable>
${
publishable
}
</
${
name
}
Publishable>"
>>
/tmp/cicd.props
}
function
AddTailConfig
()
...
...
@@ -63,17 +61,20 @@ else
AddHeadConfig
"1"
,
"0"
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
do
# Notes:
manual control, mandatory release, will not analyzing changes
# Notes:
Hard release[manual control], will not analyz changes.
isPublishable
=
$(
eval echo
${
servicePrefix
}
Publishable
)
if
[
"
${
isPublishable
}
"
==
"1"
]
;
then
AddConfig
"
${
servicePrefix
}
"
"
${
isPublishable
}
"
echo
"Tips[Hard Release]:
${
servicePrefix
}
will be released."
else
# Analyzing git changes
#
Soft Release, begin
Analyzing git changes
IsPublishable
"src/
${
servicePrefix
}
"
isPublishable publishableCount
AddConfig
"
${
servicePrefix
}
"
"
${
isPublishable
}
"
echo
"Tips[Soft Release]:
${
servicePrefix
}
will be released."
if
[
"
${
isPublishable
}
"
==
"1"
]
;
then
AddConfig
"
${
servicePrefix
}
"
"
${
isPublishable
}
"
echo
"Tips[Soft Release]:
${
servicePrefix
}
will be released."
fi
fi
done
AddTailConfig
...
...
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