Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
cd0244b9
Commit
cd0244b9
authored
Aug 30, 2021
by
温海元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add git pull
parent
8f525a34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
deploy.sh
qa_shell_script/qa_platform/deploy.sh
+4
-6
No files found.
qa_shell_script/qa_platform/deploy.sh
View file @
cd0244b9
project_name
=
$1
project_name
=
$1
target_dir
=
"/home/quant_group
/
${
project_name
}
"
target_dir
=
"/home/quant_group"
qaapi
=
'http://172.30.220.22:3003'
qaapi
=
'http://172.30.220.22:3003'
git_path
=
`
curl
-s
"
${
qaapi
}
/proconfig/get_info?system_name=
${
project_name
}
&key=git_path"
`
git_path
=
`
curl
-s
"
${
qaapi
}
/proconfig/get_info?system_name=
${
project_name
}
&key=git_path"
`
...
@@ -10,18 +10,17 @@ echo "目录切换到 ${target_dir}"
...
@@ -10,18 +10,17 @@ echo "目录切换到 ${target_dir}"
if
[
!
-d
"
$project_name
"
]
;
then
if
[
!
-d
"
$project_name
"
]
;
then
echo
"项目不存在"
echo
"项目不存在"
git clone
${
git_path
}
git clone
${
git_path
}
cd
./
${
project_name
}
cd
${
project_name
}
else
else
echo
"项目已存在"
echo
"项目已存在"
cd
./
${
project_name
}
cd
${
project_name
}
echo
"cd
./
${
project_name
}
"
echo
"cd
${
project_name
}
"
fi
fi
echo
"开始部署项目"
echo
"开始部署项目"
if
[
"
$project_name
"
=
"qa-platform-ui"
]
;
then
if
[
"
$project_name
"
=
"qa-platform-ui"
]
;
then
echo
"这是一个UI项目"
echo
"这是一个UI项目"
cd
${
target_dir
}
git pull
git pull
npm
install
npm
install
npm run build
npm run build
...
@@ -30,7 +29,6 @@ if [ "$project_name" = "qa-platform-ui" ];then
...
@@ -30,7 +29,6 @@ if [ "$project_name" = "qa-platform-ui" ];then
echo
"done"
echo
"done"
else
else
echo
"这是JAVA项目"
echo
"这是JAVA项目"
cd
${
target_dir
}
git pull
git pull
mvn clean package
-Ptest
-Dmaven
.test.skip
=
true
mvn clean package
-Ptest
-Dmaven
.test.skip
=
true
supervisorctl restart
$project_name
supervisorctl restart
$project_name
...
...
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