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
38ffbe62
Commit
38ffbe62
authored
Jan 09, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改方法
parent
33dbeccb
Pipeline
#4089
passed with stage
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
devops/PipeLines/Functions.sh
+4
-5
No files found.
devops/PipeLines/Functions.sh
View file @
38ffbe62
...
...
@@ -49,11 +49,10 @@ function GetMajor()
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
=
${
major
}
.
${
minor
}
.
${
patch
}
eval
$1
=
${
v
}
declare
major
=(
$(
grep
-oP
'(?<=VersionMajor>)[^<]+'
"./devops/version.props"
)
)
declare
minor
=(
$(
grep
-oP
'(?<=VersionMinor>)[^<]+'
"./devops/version.props"
)
)
declare
patch
=(
$(
grep
-oP
'(?<=VersionPatch>)[^<]+'
"./devops/version.props"
)
)
eval
$1
=
${
major
}
.
${
minor
}
.
${
patch
}
}
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