Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spring-ci-advanced
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bùi Bá Trường
spring-ci-advanced
Commits
fd2dac17
Commit
fd2dac17
authored
Jul 30, 2019
by
Bùi Bá Trường
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
truongbb - test ci
parent
4bad5845
Pipeline
#347
failed with stages
in 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
build-test.sh
build-test.sh
+6
-17
No files found.
build-test.sh
View file @
fd2dac17
...
...
@@ -18,10 +18,6 @@ sub_help(){
echo
""
}
sub_demo
(){
echo
"aaaaaaaaaaaaaaaaaaaa"
}
sub_checkout
(){
echo
"--------------CHECKING OUT GIT CODE--------------------"
cd
/root/GitlabRunner/repo/
...
...
@@ -38,14 +34,7 @@ sub_compile(){
cd
/root/GitlabRunner/repo/
ls
# mvn install
module
=
''
if
[[
-z
$1
]]
;
then
echo
"Compiling for all modules in project"
elif
[[
-n
$1
]]
;
then
module
=
'-am -pl '
$1
echo
"Compiling for module"
$1
fi
_docker_mvn compile
${
module
}
-DskipTests
_docker_mvn compile
-DskipTests
echo
"DONE!"
}
...
...
@@ -57,7 +46,7 @@ sub_sonar-scan(){
}
sub_send-email
(){
echo
"TODO - send email"
}
...
...
@@ -71,17 +60,17 @@ _docker_mvn() {
}
subcommand
=
$1
sub
_
command
=
$1
case
$sub
command
in
case
sub_
command
in
""
|
"-h"
|
"--help"
)
sub_help
;;
*
)
shift
sub_
${
subcommand
}
$@
sub_
${
sub
_
command
}
$@
if
[[
$?
=
127
]]
;
then
echo
"Error: '
$subcommand
' is not a known sub-command."
>
&2
echo
"Error: '
$sub
_
command
' is not a known sub-command."
>
&2
echo
"Run '
$cmd
--help' for a list of known sub-commands."
>
&2
exit
1
fi
...
...
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