Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
voila-runtimes
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
mice
voila-runtimes
Commits
bafa00cf
Commit
bafa00cf
authored
4 years ago
by
fabio.memoli@micegroup.it
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
a4a50556
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
voila-runtime-root/deploy_release.cmd
+18
-15
18 additions, 15 deletions
voila-runtime-root/deploy_release.cmd
with
18 additions
and
15 deletions
voila-runtime-root/deploy_release.cmd
+
18
−
15
View file @
bafa00cf
...
...
@@ -13,42 +13,45 @@ call git push origin --delete "%TAG_NAME%" 2>nul
rem Prepare a release without push remote tag and changes.
call
mvn
release
:prepare
-DremoteTagging
=
false
-DpushChanges
=
false
echo
ERRORLEVEL
=
%ERRORLEVEL%
exit
/b
0
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
rem Push remote tag and changes.
call
git
commit
-a -m
"Prepare a release"
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
call
git
tag
"
%TAG_NAME%
"
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
call
git
push
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
call
git
push
--tags
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
call
git
push
origin
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
rem Perform a release.
call
mvn
release
:perform
if
(
"
%ERRORLEVEL%
"
neq
0
)
goto
ExitOnError
if
%ERRORLEVEL%
neq
0
goto
ExitOnError
echo
The
deploy
has
been
completed
with
success
!
endlocal
echo
[
INFO
]
------------------------------------------------------------------------
echo
[
INFO
]
DEPLOY
SUCCESS
echo
[
INFO
]
------------------------------------------------------------------------
echo
[
INFO
]
The
deploy
has
been
completed
with
success
!
exit
/b
0
rem This is a label for GOTO.
:ExitOnError
echo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo
!!
ERROR
!!
echo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo
Warning
:
r
estoring
all
POM
in
the
project
to
their
pre
-release
state
.
echo
[
ERROR
]
echo
[
ERROR
]
The
deploy
of
project
has
not
been
completed
.
See
logs
for
details
.
echo
[
ERROR
]
echo
[
INFO
]
R
estoring
all
POM
in
the
project
to
their
pre
-release
state
.
call
mvn
release
:rollback
call
mvn
release
:clean
echo
Error
:
the
deploy
has
not
been
completed
.
See
logs
for
details
.
echo
[
INFO
]
------------------------------------------------------------------------
echo
[
INFO
]
DEPLOY
FAILURE
echo
[
INFO
]
------------------------------------------------------------------------
exit
/b
1
rem end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment