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
04cd5a27
Commit
04cd5a27
authored
Jan 09, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重命名
parent
7e2fbe3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
devops/PipeLines/Functions.sh
+11
-11
No files found.
devops/PipeLines/Functions.sh
View file @
04cd5a27
...
...
@@ -10,9 +10,9 @@ function GetServices()
function
GetServiceName
()
{
declare
serviceP
refix
=
${
1
}
declare
serviceName
=
$(
ls
./src/Services/
${
serviceP
refix
}
|head
-n
1|xargs
-d
'/'
echo
)
eval
$2
=
"
${
serviceN
ame
}
"
declare
p
refix
=
${
1
}
declare
name
=
$(
ls
./src/Services/
${
p
refix
}
|head
-n
1|xargs
-d
'/'
echo
)
eval
$2
=
"
${
n
ame
}
"
}
function
GetAppName
()
...
...
@@ -35,16 +35,16 @@ function GetImageUserName()
function
GetCiCdSettings
()
{
declare
all
Publishable
=(
$(
grep
-oP
'(?<=AllPublishable>)[^<]+'
"/tmp/cicd.props"
)
)
declare
no
Publishable
=(
$(
grep
-oP
'(?<=NoPublishable>)[^<]+'
"/tmp/cicd.props"
)
)
eval
$1
=
${
all
Publishable
}
eval
$2
=
${
no
Publishable
}
declare
all
=(
$(
grep
-oP
'(?<=AllPublishable>)[^<]+'
"/tmp/cicd.props"
)
)
declare
no
=(
$(
grep
-oP
'(?<=NoPublishable>)[^<]+'
"/tmp/cicd.props"
)
)
eval
$1
=
${
all
}
eval
$2
=
${
no
}
}
function
GetMajor
()
{
declare
m
ajor
=(
$(
grep
-oP
'(?<=VersionMajor>)[^<]+'
"devops/version.props"
)
)
eval
$1
=
${
m
ajor
}
declare
m
=(
$(
grep
-oP
'(?<=VersionMajor>)[^<]+'
"devops/version.props"
)
)
eval
$1
=
${
m
}
}
function
GetVersion
()
...
...
@@ -52,8 +52,8 @@ function GetVersion()
declare
major
=(
$(
grep
-oP
'(?<=VersionMajor>)[^<]+'
"devops/version.props"
)
)
declare
minor
=(
$(
grep
-oP
'(?<=VersionMinor>)[^<]+'
"devops/version.props"
)
)
declare
patch
=(
$(
grep
-oP
'(?<=VersionPatch>)[^<]+'
"devops/version.props"
)
)
declare
v
ersion
=
${
major
}
.
${
minor
}
.
${
patch
}
eval
$1
=
${
v
ersion
}
declare
v
=
${
major
}
.
${
minor
}
.
${
patch
}
eval
$1
=
${
v
}
}
function
GetImageRegistrySettings
()
...
...
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