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
ef8748c6
Commit
ef8748c6
authored
Mar 14, 2017
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
a6fe258c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
52 deletions
+16
-52
5_restart_by_name.sh
qa_shell_script/5_restart_by_name.sh
+1
-1
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+1
-1
XyqbAndroidBuild.sh
qa_shell_script/app/XyqbAndroidBuild.sh
+0
-49
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+1
-1
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+6
-0
flush_all.sh
qa_shell_script/redis_script/flush_all.sh
+7
-0
No files found.
qa_shell_script/5_restart_by_name.sh
View file @
ef8748c6
...
...
@@ -50,7 +50,7 @@ function restartJavaProject()
echo
"-----project:
$project
while be run command: java -Xmx256m -XX:PermSize64m -Xloggc:/tmp/
${
project
}
.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar
${
project
}
.jar --worker 1 --currentWorker 1 -t > /dev/null 2>&1 &"
log_name
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
log_name
`
mv
$project_path
/logs/
$log_name
$project_path
/logs/logs_back/
$project
-
$time
.log
#
mv $project_path/logs/$log_name $project_path/logs/logs_back/$project-$time.log
if
[[
$project
==
"redpacket"
]]
;
then
echo
`
java
-Xmx512m
-XX
:PermSize64m
-Xloggc
:/tmp/
${
project
}
.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-jar
${
project
}
.jar
--worker
1
--currentWorker
1
-t
-ts
>
/dev/null 2>&1 &
`
...
...
qa_shell_script/5_restart_by_type.sh
View file @
ef8748c6
...
...
@@ -30,7 +30,7 @@ function restartJavaProject()
sleep
2s
fi
log_name
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
log_name
`
mv
$project_path
/logs/
$log_name
$project_path
/logs/logs_back/
$project
-
$time
.log
#
mv $project_path/logs/$log_name $project_path/logs/logs_back/$project-$time.log
config_file
=
`
find ./
-maxdepth
2
-name
"application.properties"
`
if
[
-n
"
$config_file
"
]
then
...
...
qa_shell_script/app/XyqbAndroidBuild.sh
deleted
100755 → 0
View file @
a6fe258c
#!/bin/bash
project_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild
target_file
=
${
project_path
}
/app/build.gradle
store_path
=
/home/ganshc/
source_file
=
${
store_path
}
/build.gradle
buildapk_path
=
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/build/archives
branch_name
=
$1
product_flavors
=
$2
cd
${
project_path
}
if
[
-z
${
branch_name
}
]
;
then
echo
"checkout default branch master"
git pull
else
echo
"checkout specified branch
${
branch_name
}
"
which git
git checkout
${
branch_name
}
if
[
$?
=
0
]
;
then
echo
"checkout branch
$1
is ok"
.
git pull
else
echo
"Fail to checkout branch
${
branch_name
}
"
.
exit
-1
fi
fi
echo
"copy file to app"
cp
-r
${
source_file
}
${
target_file
}
echo
"gradle build start"
gradle clean resguard
--stacktrace
--debug
echo
"rename apk"
cd
${
buildapk_path
}
apkfile
=
`
find ./
-name
"*
${
product_flavors
}
.apk"
`
cp
${
apkfile
}
/home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/
${
branch_name
}
_
${
product_flavors
}
.apk
echo
"upload apk to pugongyin"
curl
-F
"file=@/home/quant_group/jenkins/workspace/XyqbAndroidBuild/apk/
${
branch_name
}
_
${
product_flavors
}
.apk"
-F
"uKey=13d17385c02ea9ea994d0c985d87ff32"
-F
"_api_key=5b09af98d5a8ff43f2f39935fa6bfbc1"
https://static.pgyer.com/app/qrcode/lJrv
qa_shell_script/config_server/get_project_config.js
View file @
ef8748c6
...
...
@@ -91,7 +91,7 @@ new pClass().init(true, "ui", "7048", "order-op-ui", "OP", null, "src/js/env.con
new
pClass
().
init
(
true
,
"
ui
"
,
"
7050
"
,
"
bt-ui
"
,
"
QG
"
,
null
,
"
src/app/config/env.config.js
"
,
"
npm run qa
"
,
"
node7
"
,
1
,
"
新版白条-ui
"
,
""
);
// node
new
pClass
().
init
(
true
,
"
node
"
,
"
7018
"
,
"
AppBackend
"
,
"
QG
"
,
null
,
"
config/environment/test.js
"
,
"
forever start -a -s --uid AppBackend bin/www
"
,
null
,
1
,
"
APP后台服务-server
"
,
""
,
"
forever stop AppBackend
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7041
"
,
"
activity-op
"
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
forever start -a -s --uid activity-op src/app.js
"
,
null
,
1
,
"
优惠券中心-server
"
,
""
,
"
forever stop activity-op
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7041
"
,
"
activity-op
"
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
优惠券中心-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7047
"
,
"
op-api
"
,
"
OP
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
系统Api Gateway-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7049
"
,
"
fe-api
"
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
科传项目-消息推送
"
,
""
,
"
pm2 stop fe-api
"
);
//python
...
...
qa_shell_script/exception_sub_shell.sh
View file @
ef8748c6
...
...
@@ -69,4 +69,10 @@ tranceConfig java "hubei.api.url=http:\/\/192.168.100.185:8585" "hubei.api.url=h
#tranceConfig python "192.168.4.14" "192.168.4.20" "192.168.4.14" "qin-qiong.*"
tranceConfig java
"spider-center.host=http:
\/\/
192.168.4.12:7021
\/
"
"spider-center.host=http:
\/\/
spider-center-12.ss.xyqb.loan
\/
"
"192.168.4.12"
"spider-center.properties"
tranceConfig java
"qgbc-ui.url=http:
\/\/
192.168.4.152:7002"
"qgbc-ui.url=http:
\/\/
192.168.4.152:7050"
"192.168.4.152"
"xyqb.properties"
tranceConfig java
"7025"
"7003"
"192.168.4.152"
"baitiao.properties"
tranceConfig node
"112233445512345.ittun.com"
"activity-op-22.ss.xyqb.loan"
"192.168.4.22"
"activity-op.js"
qa_shell_script/redis_script/flush_all.sh
0 → 100644
View file @
ef8748c6
#!/bin/bash
redis-cli
-p
6379 FLUSHALL
redis-cli
-p
6380 FLUSHALL
redis-cli
-p
6381 FLUSHALL
redis-cli
-p
6382 FLUSHALL
redis-cli
-p
6383 FLUSHALL
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