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
980acdb0
Commit
980acdb0
authored
Apr 01, 2017
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a010bd28
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
26 deletions
+18
-26
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+6
-0
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+6
-0
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+1
-0
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+5
-26
No files found.
qa_shell_script/4_build_by_name.sh
View file @
980acdb0
...
@@ -40,6 +40,12 @@ function buildJavaProject()
...
@@ -40,6 +40,12 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
fi
if
[[
"
$project
"
=
"baitiao"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
if
[[
$project
==
"baitiao"
]]
;
then
if
[[
$project
==
"baitiao"
]]
;
then
...
...
qa_shell_script/4_build_by_type.sh
View file @
980acdb0
...
@@ -33,6 +33,12 @@ function buildJavaProject()
...
@@ -33,6 +33,12 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
fi
if
[[
"
$project
"
=
"baitiao"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
...
...
qa_shell_script/config_server/get_project_config.js
View file @
980acdb0
...
@@ -102,6 +102,7 @@ new pClass().init(true, "node", "7018", "AppBackend", false, "QG", null, "config
...
@@ -102,6 +102,7 @@ new pClass().init(true, "node", "7018", "AppBackend", false, "QG", null, "config
new
pClass
().
init
(
true
,
"
node
"
,
"
7041
"
,
"
activity-op
"
,
false
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
优惠券中心-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7041
"
,
"
activity-op
"
,
false
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
优惠券中心-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7047
"
,
"
op-api
"
,
false
,
"
OP
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
系统Api Gateway-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7047
"
,
"
op-api
"
,
false
,
"
OP
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
系统Api Gateway-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7049
"
,
"
fe-api
"
,
false
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
科传项目-消息推送
"
,
""
,
"
pm2 stop fe-api
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7049
"
,
"
fe-api
"
,
false
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
科传项目-消息推送
"
,
""
,
"
pm2 stop fe-api
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7054
"
,
"
xyqb-h5-backend
"
,
false
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
信用钱包帮助中心
"
,
""
,
"
sh stop.sh
"
);
//python
//python
new
pClass
().
init
(
true
,
"
python
"
,
"
7022
"
,
"
qin-qiong
"
,
false
,
"
QG
"
,
null
,
"
config/beta/config.properties
"
,
null
,
null
,
1
,
"
加密解密-server
"
,
""
,
""
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7022
"
,
"
qin-qiong
"
,
false
,
"
QG
"
,
null
,
"
config/beta/config.properties
"
,
null
,
null
,
1
,
"
加密解密-server
"
,
""
,
""
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7033
"
,
"
xyqb-query
"
,
false
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
query-server
"
,
""
,
""
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7033
"
,
"
xyqb-query
"
,
false
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
query-server
"
,
""
,
""
);
...
...
qa_shell_script/exception_sub_shell.sh
View file @
980acdb0
...
@@ -15,9 +15,8 @@ function tranceConfig()
...
@@ -15,9 +15,8 @@ function tranceConfig()
"
"
if
[
"
$type_
"
=
"java"
]
if
[
"
$type_
"
=
"java"
]
then
then
sed
-i
"s#
$source_str
#
$target_str
#g"
$base_path
/
$ip_host
/java/
$file_name
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/java/
$file_name
sed
-i
"s#
$source_str
#
$target_str
#g"
$base_path
/
$ip_host
/public/java/
$file_name
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/public/java/
$file_name
elif
[
"
$type_
"
=
"ui"
]
elif
[
"
$type_
"
=
"ui"
]
then
then
...
@@ -34,28 +33,21 @@ function tranceConfig()
...
@@ -34,28 +33,21 @@ function tranceConfig()
elif
[
"
$type_
"
=
"nginx"
]
elif
[
"
$type_
"
=
"nginx"
]
then
then
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/nginx_conf.d/
$file_name
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/nginx_conf.d/
$file_name
fi
fi
}
}
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.12" "xyqb-mall.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.151"
"xyqb-mall.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.151"
"xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.152" "xyqb-mall.properties"
tranceConfig java
'cardniu.client.url=http://kn.feidee.net/loanmanage/loan/partner/k_n_user_quota_client.do'
'cardniu.client.url=http://192.168.4.248/mockjs/31/loanmanage/loan/partner/k_n_user_quota_client.do'
"192.168.4.14"
"xyqb.properties"
tranceConfig java
"cardniu.url=http://kn.feidee.net/loanmanage/loan/partner/k_n_user_quota.do"
"cardniu.url=http://192.168.4.248/mockjs/31/loanmanage/loan/partner/k_n_user_quota.do"
"192.168.4.14"
"xyqb.properties"
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "di-ting.properties"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "di-ting.properties"
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig node "192.168.4.3" "192.168.4.107" "192.168.4.12" "AppBackend.js"
#tranceConfig node "192.168.4.3" "192.168.4.107" "192.168.4.12" "AppBackend.js"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.151"
"xyqb.properties"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.151"
"xyqb.properties"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.12"
"xyqb.properties"
#tranceConfig ui "7047" "12047" "192.168.4.12" "merchant-op-ui.js"
#tranceConfig ui "7047" "12047" "192.168.4.12" "merchant-op-ui.js"
tranceConfig node
"d45o0qd"
"5exp2xo"
"192.168.4.152"
"op-api.js"
tranceConfig node
"d45o0qd"
"5exp2xo"
"192.168.4.152"
"op-api.js"
#tranceConfig java "192.168.4.15:7007" "139.198.2.95:1507" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "192.168.4.15:7007" "139.198.2.95:1507" "192.168.4.15" "gu-bei.properties"
tranceConfig java
"hubei.api.url=http:
\/\/
192.168.100.185:8585"
"hubei.api.url=http:
\/\/
192.168.4.251:8585"
"192.168.4.16"
"di-ting.properties"
#这个配置是微信支付的时候,需要修改成线上的沙箱环境
#这个配置是微信支付的时候,需要修改成线上的沙箱环境
#tranceConfig java "wxcdf6077af8127559" "wx0a7c0bce0c3ac523" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "wxcdf6077af8127559" "wx0a7c0bce0c3ac523" "192.168.4.15" "xyqb-user2.properties"
...
@@ -63,28 +55,15 @@ tranceConfig java "hubei.api.url=http:\/\/192.168.100.185:8585" "hubei.api.url=h
...
@@ -63,28 +55,15 @@ tranceConfig java "hubei.api.url=http:\/\/192.168.100.185:8585" "hubei.api.url=h
#tranceConfig java "e1dd0780c93aae56c2d786184421cfc8" "10131fe347f88e0affabe45b7ee4ca6c" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "e1dd0780c93aae56c2d786184421cfc8" "10131fe347f88e0affabe45b7ee4ca6c" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "paycenter.host.url=http:\/\/192.168.4.15:7007" "paycenter.host.url=http:\/\/wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "paycenter.host.url=http:\/\/192.168.4.15:7007" "paycenter.host.url=http:\/\/wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "139.198.2.95:1507" "wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "139.198.2.95:1507" "wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#微信环境配置结束
#tranceConfig java "192.168.4.14:7007" "139.198.2.95:1407" "192.168.4.14" "gu-bei.properties"
#tranceConfig java "192.168.4.14:7007" "139.198.2.95:1407" "192.168.4.14" "gu-bei.properties"
#tranceConfig java "paycenter.exception.debug=1" "paycenter.exception.debug=0" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "paycenter.exception.debug=1" "paycenter.exception.debug=0" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "192.168.4.14:3306" "192.168.4.20:3306" "192.168.4.14" "*"
#tranceConfig java "192.168.4.14:3306" "192.168.4.20:3306" "192.168.4.14" "*"
#tranceConfig python "192.168.4.14" "192.168.4.20" "192.168.4.14" "qin-qiong.*"
#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 "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
"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 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"
tranceConfig node
"112233445512345.ittun.com"
"activity-op-22.ss.xyqb.loan"
"192.168.4.22"
"activity-op.js"
tranceConfig node
"112233445512345.ittun.com"
"activity-op-24.ss.xyqb.loan"
"192.168.4.24"
"activity-op.js"
#tranceConfig nginx "7002" "7050" "192.168.4.13" "qgbc-ui.conf"
#tranceConfig nginx "7050" "7002" "192.168.4.13" "bt-ui.conf"
#tranceConfig ui "7002" "7050" "192.168.4.13" "bt-ui.js"
#tranceConfig node "7002" "7050" "192.168.1.23" "AppBackend.js"
tranceConfig java
"7002"
"7050"
"192.168.4.13"
"baitiao.properties"
tranceConfig java
"7002"
"7050"
"192.168.4.13"
"baitiao.properties"
#tranceConfig node "7002" "7050" "192.168.4.12" "AppBackend.js"
#tranceConfig nginx "7002" "7050" "192.168.4.17" "qgbc-ui.conf"
#tranceConfig nginx "7050" "7002" "192.168.4.17" "bt-ui.conf"
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