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
f75e953e
Commit
f75e953e
authored
Aug 10, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change
parent
2aa26d29
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
469 additions
and
316 deletions
+469
-316
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+153
-135
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+158
-139
buildJava.sh
qa_shell_script/base_script/buildJava.sh
+34
-0
buildNode.sh
qa_shell_script/base_script/buildNode.sh
+23
-0
buildPython.sh
qa_shell_script/base_script/buildPython.sh
+36
-0
buildUi.sh
qa_shell_script/base_script/buildUi.sh
+18
-0
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+47
-42
No files found.
qa_shell_script/4_build_by_name.sh
View file @
f75e953e
#!/bin/bash
#!/bin/bash
project_name
=
$1
project_name
=
$1
is_public_ip
=
$2
is_public_ip
=
$2
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
# pwd_path="/home/qa-deploy-utils/qa_shell_script"
pwd_path
=
"/Users/yangmei/gitabc.xyqb.com/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/project_path.sh
`
project_path
=
`
cat
$config_server
/project_path.sh
`
project_type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
project_type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
...
@@ -10,148 +11,165 @@ node4_path=`cat $config_server/node_4_path.sh`
...
@@ -10,148 +11,165 @@ node4_path=`cat $config_server/node_4_path.sh`
node7_path
=
`
cat
$config_server
/node_7_path.sh
`
node7_path
=
`
cat
$config_server
/node_7_path.sh
`
profile
=
test
profile
=
test
host
=
`
/sbin/ifconfig
-a
|grep inet|grep
-v
127.0.0.1|grep
-v
inet6|awk
'{print $2}'
|tr
-d
"addr:"
`
host
=
`
/sbin/ifconfig
-a
|grep inet|grep
-v
127.0.0.1|grep
-v
inet6|awk
'{print $2}'
|tr
-d
"addr:"
`
echo
"host=
$host
"
echo
"host=
$host
"
hosts
=(
${
host
//\./
}
)
hosts
=(
${
host
//\./
}
)
suffix
=
${
hosts
[3]
}
suffix
=
${
hosts
[3]
}
function
buildJavaProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
target_path
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
target_path
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
cd
$project_path
/
$project
rm
-rf
$target_path
rm
-rf
$project
.jar
if
[[
"
$project
"
=
"xyqb"
||
"
$project
"
=
"gu-bei"
||
"
$project
"
=
"han-gu-guan"
||
"
$project
"
=
"di-ting"
||
"
$project
"
=
"xyqb-offline"
||
"
$project
"
=
"xyqb-user2"
]]
;
then
echo
"module is
$project
, need replace sms jar version from 1.0.x to 1.0.2"
num
=
`
grep
-n
-A12
"<id>test</id>"
$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
if
[[
"
$project
"
=
"du-jiang-yan"
]]
;
then
num
=
`
grep
-n
-A3
"<artifactId>fund-manage-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.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
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
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.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
if
[
$?
=
0
]
;
then
echo
"
${
project
}
build ok"
else
echo
"
${
project
}
build fail"
exit
-1
fi
echo
"
$target_path
"
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
}
function
buildUiProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
config_file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
node_version
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
node_version
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
# rm -rf ./$config_file
# if $is_public_ip && [ -n "$is_public_ip" ]
# then
# cp -r $config_path/public/ui/$project.* $project_path/$project/$config_file
# else
# cp -r $config_path/ui/$project.* $project_path/$project/$config_file
# fi
#imagemin_dist=`grep -n -A3 "imagemin" *.js|awk '{print $1}'`
#if [ -n "$imagemin_dist" ];then
# echo "npm install gruntjs/grunt-contrib-imagemin"
#${node4_path}/
# npm install gruntjs/grunt-contrib-imagemin
#${node4_path}/npm --registry http://192.168.3.7:4873 install async
#else
# echo "dont install imagemin"
#fi
# --registry http://192.168.3.7:4873
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
else
npm
--registry
http://172.16.3.15:4873
install
fi
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
if
[
-n
"
$bower_json
"
]
;
then
echo
"bower install --allow-root"
bower
install
--allow-root
else
echo
"don't have bower.json"
fi
$command
# 第二步 不关机使得nginx生效
nginx
-t
;
nginx
-s
reload
}
function
buildNodeProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
config_file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
node_version
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
node_version
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
#第二步 关联配置文件
rm
-rf
./
$config_file
echo
"------ln -s
$config_path
/node/
$project
.* ./
$config_file
"
ln
-s
$config_path
/node/
$project
.
*
./
$config_file
npm config
set
"@types:registry"
http://registry.npmjs.org/
npm
--registry
http://172.16.3.15:4873
install
}
function
buildPythonProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
config_file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
cd
$project_path
/
$project
setup_path_temp
=
`
find ./
-name
"setup.py"
`
python
${
setup_path_temp
}
install
#第四步 关联配置文件
rm
-rf
$config_file
ln
-s
$config_path
/python/
$project
.
*
$config_file
}
if
[
"
$project_type
"
=
"java"
]
;
then
if
[
"
$project_type
"
=
"java"
]
;
then
buildJavaProject
$project_name
$3
sh
$pwd_path
/base_script/buildJava.sh
$project_name
$config_server
$project_path
# buildJavaProject $project_name $3
elif
[
"
$project_type
"
=
"ui"
]
;
then
elif
[
"
$project_type
"
=
"ui"
]
;
then
buildUiProject
$project_name
$3
sh
$pwd_path
/base_script/buildUi.sh
$project_name
$config_server
$project_path
# buildUiProject $project_name $3
elif
[
"
$project_type
"
=
"node"
]
;
then
elif
[
"
$project_type
"
=
"node"
]
;
then
buildNodeProject
$project_name
$3
sh
$pwd_path
/base_script/buildNode.sh
$project_name
$config_server
$project_path
# buildNodeProject $project_name $3
elif
[
"
$project_type
"
=
"python"
]
;
then
elif
[
"
$project_type
"
=
"python"
]
;
then
buildPythonProject
$project_name
$3
sh
$pwd_path
/base_script/buildPython.sh
$project_name
$config_server
$project_path
# buildPythonProject $project_name $3
fi
fi
# if [[ "$project" = "xyqb" || "$project" = "han-gu-guan" || "$project" = "di-ting" || "$project" = "xyqb-offline" || "$project" = "xyqb-user2" ]]; then
# echo "module is $project, need replace sms jar version from 1.0.x to 1.0.2"
# num=`grep -n -A12 "<id>test</id>" $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
#
# if [[ "$project" = "du-jiang-yan" ]]; then
# num=`grep -n -A3 "<artifactId>fund-manage-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.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
#
# if [[ "$project" = "finance-api" || "$project" = "financial-system" ]]; 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.6.3/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
# function buildJavaProject()
# {
# project=$1
# config_server=$2
# project_path=$3
#
# params=`node $config_server/get_project_config.js -name $project -attr desc/target_path/command2`
# params_arry=(${params//|/ })
# desc=${params_arry[0]}
# target_path=${params_arry[1]}
# build_command=${params_arry[2]//\^/ }
# sh $config_server/show_info.sh $project BUILD $desc $2
# cd $project_path/$project
#
# rm -rf $target_path
# rm -rf $project.jar
#
# nums=(`awk '/quantgroup-sms-sdk/ {print NR}' $project_path/$project/pom.xml`)
# for num in ${nums[@]}
# do
# lin=$[ $num+1 ]
# echo "$lin"
# sed -i "${lin}s/^.*$/\<version\>2.0.0.3-SNAPSHOT\<\/version\>/" $project_path/$project/pom.xml
# done
#
# echo "$build_command"
# $build_command
# if [ $? = 0 ]; then
# echo "${project} build ok"
# else
# echo "${project} build fail"
# exit -1
# fi
# echo "$target_path"
# mv $project_path/$project/$target_path/*.jar $project_path/$project/$project.jar
# }
# function buildNodeProject()
# {
# project=$1
# params=`node $config_server/get_project_config.js -name $project -attr desc/config_file/command/node_version`
# params_arry=(${params//|/ })
#
# desc=${params_arry[0]}
# config_file=${params_arry[1]}
# command=${params_arry[2]//\^/ }
# node_version=${params_arry[3]}
#
# sh $config_server/show_info.sh $project BUILD $desc $2
# # 第一步 将nginx项目的所有文件进行打包
# cd $project_path/$project
# #第二步 关联配置文件
# rm -rf ./$config_file
# echo "------ln -s $config_path/node/$project.* ./$config_file"
# ln -s $config_path/node/$project.* ./$config_file
# npm config set "@types:registry" http://registry.npmjs.org/
# npm --registry http://172.16.3.15:4873 install
#
# }
# function buildUiProject()
# {
# project=$1
# params=`node $config_server/get_project_config.js -name $project -attr desc/config_file/command/node_version`
# params_arry=(${params//|/ })
#
# desc=${params_arry[0]}
# config_file=${params_arry[1]}
# command=${params_arry[2]//\^/ }
# node_version=${params_arry[3]}
#
#
# sh $config_server/show_info.sh $project BUILD $desc $2
# # 第一步 将nginx项目的所有文件进行打包
# cd $project_path/$project
#
# if [ "$node_version" = "node4" ] ;then
# echo "----node-V4---${node4_path}/npm install"
# ${node4_path}/npm install
# else
# npm --registry http://172.16.3.15:4873 install
# fi
# bower_json=`find ./ -maxdepth 1 -name "bower.json"`
#
# if [ -n "$bower_json" ];then
# echo "bower install --allow-root"
# bower install --allow-root
# else
# echo "don't have bower.json"
# fi
#
# $command
# # 第二步 不关机使得nginx生效
# nginx -t; nginx -s reload
# }
# function buildPythonProject()
# {
# project=$1
# params=`node $config_server/get_project_config.js -name $project -attr desc/config_file`
# params_arry=(${params//|/ })
# desc=${params_arry[0]}
# config_file=${params_arry[1]}
#
# sh $config_server/show_info.sh $project BUILD $desc $2
#
# cd $project_path/$project
# setup_path_temp=`find ./ -name "setup.py"`
# python ${setup_path_temp} install
# #第四步 关联配置文件
# rm -rf $config_file
# ln -s $config_path/python/$project.* $config_file
# }
qa_shell_script/4_build_by_type.sh
View file @
f75e953e
...
@@ -6,97 +6,14 @@ pwd_path="/home/qa-deploy-utils/qa_shell_script"
...
@@ -6,97 +6,14 @@ pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/project_path.sh
`
project_path
=
`
cat
$config_server
/project_path.sh
`
config_path
=
`
cat
$config_server
/config_path.sh
`
config_path
=
`
cat
$config_server
/config_path.sh
`
node4_path
=
`
cat
$config_server
/node_4_path.sh
`
#
node4_path=`cat $config_server/node_4_path.sh`
node7_path
=
`
cat
$config_server
/node_7_path.sh
`
#
node7_path=`cat $config_server/node_7_path.sh`
profile
=
test
#
profile=test
host
=
`
/sbin/ifconfig
-a
|grep inet|grep
-v
127.0.0.1|grep
-v
inet6|awk
'{print $2}'
|tr
-d
"addr:"
`
#
host=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
hosts
=(
${
host
//\./
}
)
#
hosts=(${host//\./ })
suffix
=
${
hosts
[3]
}
#
suffix=${hosts[3]}
function
buildJavaProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
target_path
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
target_path
`
sh
$config_server
/show_info.sh
$project
"打包BUILD"
$desc
$2
cd
$project_path
/
$project
rm
-rf
$target_path
rm
-rf
$project
.jar
if
[[
"
$project
"
=
"xyqb"
||
"
$project
"
=
"gu-bei"
||
"
$project
"
=
"han-gu-guan"
||
"
$project
"
=
"di-ting"
||
"
$project
"
=
"xyqb-offline"
||
"
$project
"
=
"xyqb-user2"
]]
;
then
echo
"module is
$project
, need replace sms jar version from 1.0.x to 1.0.2"
num
=
`
grep
-n
-A12
"<id>test</id>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
if
[[
"
$project
"
=
"du-jiang-yan"
]]
;
then
num
=
`
grep
-n
-A3
"<artifactId>fund-manage-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/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
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
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.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
}
function
buildUiProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
echo
sh
$config_server
/show_info.sh
$project
"打包BUILD"
$desc
$2
config_file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
node_version
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
node_version
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
rm
-rf
./
$config_file
if
$is_public_ip
&&
[
-n
"
$is_public_ip
"
]
then
cp
$config_path
/public/ui/
$project
.
*
$project_path
/
$project
/
$config_file
else
cp
$config_path
/ui/
$project
.
*
$project_path
/
$project
/
$config_file
fi
imagemin_dist
=
`
grep
-n
-A3
"imagemin"
*
.js|awk
'{print $1}'
`
if
[
-n
"
$imagemin_dist
"
]
;
then
echo
"npm install gruntjs/grunt-contrib-imagemin"
#${node4_path}/
npm
install
gruntjs/grunt-contrib-imagemin
#
else
echo
"dont install imagemin"
fi
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
else
npm
--registry
http://172.16.3.15:4873
install
fi
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
if
[
-n
"
$bower_json
"
]
;
then
echo
"bower install --allow-root"
bower
install
--allow-root
else
echo
"don't have bower.json"
fi
$command
}
function
buildNginx
()
function
buildNginx
()
{
{
...
@@ -105,85 +22,187 @@ function buildNginx()
...
@@ -105,85 +22,187 @@ function buildNginx()
nginx
-t
;
nginx
-s
reload
nginx
-t
;
nginx
-s
reload
}
}
function
buildNodeProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
echo
sh
$config_server
/show_info.sh
$project
"打包BUILD"
$desc
$2
config_file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
node_version
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
node_version
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
#第二步 关联配置文件
rm
-rf
./
$config_file
echo
" ------------ln -s
$config_path
/node/
$project
.* ./
$config_file
"
ln
-s
$config_path
/node/
$project
.
*
./
$config_file
npm config
set
"@types:registry"
http://registry.npmjs.org/
npm
--registry
http://172.16.3.15:4873
install
}
function
buildPythonProject
()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
config_file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
cd
$project_path
/
$project
setup_path_temp
=
`
find ./
-name
"setup.py"
`
python
${
setup_path_temp
}
install
#第四步 关联配置文件
rm
-rf
$config_file
ln
-s
$config_path
/python/
$project
.
*
$config_file
}
if
[
"
$project_type
"
=
"java"
]
;
then
if
[
"
$project_type
"
=
"java"
]
;
then
java_projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
java_projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
for
project
in
${
java_projects
[@]
}
for
project
_name
in
${
java_projects
[@]
}
do
do
buildJavaProject
$project
sh
$pwd_path
/base_script/buildJava.sh
$project_name
$config_server
$project_path
# buildJavaProject $project
done
done
elif
[
"
$project_type
"
=
"ui"
]
;
then
elif
[
"
$project_type
"
=
"ui"
]
;
then
ui_projects
=(
`
node
$config_server
/get_project_config.js
-type
ui
-attr
name
`
)
ui_projects
=(
`
node
$config_server
/get_project_config.js
-type
ui
-attr
name
`
)
for
project
in
${
ui_projects
[@]
}
for
project
_name
in
${
ui_projects
[@]
}
do
do
buildUiProject
$project
sh
$pwd_path
/base_script/buildUi.sh
$project_name
$config_server
$project_path
# buildUiProject $project
done
done
buildNginx
buildNginx
elif
[
"
$project_type
"
=
"node"
]
;
then
elif
[
"
$project_type
"
=
"node"
]
;
then
node_projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
node_projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
for
project
in
${
node_projects
[@]
}
for
project
_name
in
${
node_projects
[@]
}
do
do
buildNodeProject
$project
sh
$pwd_path
/base_script/buildNode.sh
$project_name
$config_server
$project_path
# buildNodeProject $project
done
done
elif
[
"
$project_type
"
=
"python"
]
;
then
elif
[
"
$project_type
"
=
"python"
]
;
then
python_projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
python_projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
for
project
in
${
python_projects
[@]
}
for
project
_name
in
${
python_projects
[@]
}
do
do
buildPythonProject
$project
sh
$pwd_path
/base_script/buildPython.sh
$project_name
$config_server
$project_path
# buildPythonProject $project
done
done
else
else
java_projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
java_projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
for
project
in
${
java_projects
[@]
}
for
project
_name
in
${
java_projects
[@]
}
do
do
buildJavaProject
$project
$ip
sh
$pwd_path
/base_script/buildJava.sh
$project_name
$config_server
$project_path
# buildJavaProject $project $ip
done
done
python_projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
python_projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
for
project
in
${
python_projects
[@]
}
for
project
_name
in
${
python_projects
[@]
}
do
do
buildPythonProject
$project
$ip
sh
$pwd_path
/base_script/buildPython.sh
$project_name
$config_server
$project_path
# buildPythonProject $project $ip
done
done
node_projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
node_projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
for
project
in
${
node_projects
[@]
}
for
project
_name
in
${
node_projects
[@]
}
do
do
buildNodeProject
$project
$ip
sh
$pwd_path
/base_script/buildNode.sh
$project_name
$config_server
$project_path
# buildNodeProject $project $ip
done
done
ui_projects
=(
`
node
$config_server
/get_project_config.js
-type
ui
-attr
name
`
)
ui_projects
=(
`
node
$config_server
/get_project_config.js
-type
ui
-attr
name
`
)
for
project
in
${
ui_projects
[@]
}
for
project
_name
in
${
ui_projects
[@]
}
do
do
buildUiProject
$project
$ip
sh
$pwd_path
/base_script/buildUi.sh
$project_name
$config_server
$project_path
# buildUiProject $project $ip
done
done
buildNginx
buildNginx
fi
fi
#
# function buildJavaProject()
# {
# project=$1
# desc=`node $config_server/get_project_config.js -name $project -attr desc`
# target_path=`node $config_server/get_project_config.js -name $project -attr target_path`
# sh $config_server/show_info.sh $project "打包BUILD" $desc $2
# cd $project_path/$project
#
# rm -rf $target_path
# rm -rf $project.jar
#
# if [[ "$project" = "xyqb" || "$project" = "gu-bei" || "$project" = "han-gu-guan" || "$project" = "di-ting" || "$project" = "xyqb-offline" || "$project" = "xyqb-user2" ]]; then
# echo "module is $project, need replace sms jar version from 1.0.x to 1.0.2"
# num=`grep -n -A12 "<id>test</id>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
#
# if [[ "$project" = "du-jiang-yan" ]]; then
# num=`grep -n -A3 "<artifactId>fund-manage-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/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
#
# if [[ "$project" = "finance-api" || "$project" = "financial-system" ]]; 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.6.3/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
#
# echo "mvn clean package -P${profile} -Dmaven.test.skip=true"
# mvn clean package -P${profile} -Dmaven.test.skip=true
# mv $project_path/$project/$target_path/*.jar $project_path/$project/$project.jar
# }
#
# function buildUiProject()
# {
# project=$1
# desc=`node $config_server/get_project_config.js -name $project -attr desc`
# echo
# sh $config_server/show_info.sh $project "打包BUILD" $desc $2
# config_file=`node $config_server/get_project_config.js -name $project -attr config_file`
# command=`node $config_server/get_project_config.js -name $project -attr command`
# node_version=`node $config_server/get_project_config.js -name $project -attr node_version`
#
# # 第一步 将nginx项目的所有文件进行打包
# cd $project_path/$project
#
# rm -rf ./$config_file
# if $is_public_ip && [ -n "$is_public_ip" ]
# then
# cp $config_path/public/ui/$project.* $project_path/$project/$config_file
# else
# cp $config_path/ui/$project.* $project_path/$project/$config_file
# fi
#
# imagemin_dist=`grep -n -A3 "imagemin" *.js|awk '{print $1}'`
#
# if [ -n "$imagemin_dist" ];then
# echo "npm install gruntjs/grunt-contrib-imagemin"
# #${node4_path}/
# npm install gruntjs/grunt-contrib-imagemin
# #
# else
# echo "dont install imagemin"
# fi
#
# if [ "$node_version" = "node4" ] ;then
# echo "----node-V4---${node4_path}/npm install"
# ${node4_path}/npm install
# else
# npm --registry http://172.16.3.15:4873 install
# fi
# bower_json=`find ./ -maxdepth 1 -name "bower.json"`
#
# if [ -n "$bower_json" ];then
# echo "bower install --allow-root"
# bower install --allow-root
# else
# echo "don't have bower.json"
# fi
#
# $command
# }
#
# function buildNginx()
# {
# # 第二步 不关机使得nginx生效
# sh $config_server/show_info.sh nginx.config_d "打包BUILD" nginx配置文件生效 $2
# nginx -t; nginx -s reload
# }
#
# function buildNodeProject()
# {
# project=$1
# desc=`node $config_server/get_project_config.js -name $project -attr desc`
# echo
# sh $config_server/show_info.sh $project "打包BUILD" $desc $2
# config_file=`node $config_server/get_project_config.js -name $project -attr config_file`
# command=`node $config_server/get_project_config.js -name $project -attr command`
# node_version=`node $config_server/get_project_config.js -name $project -attr node_version`
#
# # 第一步 将nginx项目的所有文件进行打包
# cd $project_path/$project
# #第二步 关联配置文件
# rm -rf ./$config_file
# echo " ------------ln -s $config_path/node/$project.* ./$config_file"
# ln -s $config_path/node/$project.* ./$config_file
# npm config set "@types:registry" http://registry.npmjs.org/
# npm --registry http://172.16.3.15:4873 install
# }
#
# function buildPythonProject()
# {
# project=$1
# desc=`node $config_server/get_project_config.js -name $project -attr desc`
# sh $config_server/show_info.sh $project BUILD $desc $2
# config_file=`node $config_server/get_project_config.js -name $project -attr config_file`
# cd $project_path/$project
# setup_path_temp=`find ./ -name "setup.py"`
# python ${setup_path_temp} install
# #第四步 关联配置文件
# rm -rf $config_file
# ln -s $config_path/python/$project.* $config_file
# }
\ No newline at end of file
qa_shell_script/base_script/buildJava.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/target_path/command2
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
target_path
=
${
params_arry
[1]
}
build_command
=
${
params_arry
[2]//\^/
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
cd
$project_path
/
$project
rm
-rf
$target_path
rm
-rf
$project
.jar
nums
=(
`
awk
'/quantgroup-sms-sdk/ {print NR}'
$project_path
/
$project
/pom.xml
`
)
for
num
in
${
nums
[@]
}
do
lin
=
$[
$num
+1
]
echo
"
$lin
"
sed
-i
"
${
lin
}
s/^.*
$/
\<
version
\>
2.0.0.3-SNAPSHOT
\<\/
version
\>
/"
$project_path
/
$project
/pom.xml
done
echo
"
$build_command
"
$build_command
if
[
$?
=
0
]
;
then
echo
"
${
project
}
build ok"
else
echo
"
${
project
}
build fail"
exit
-1
fi
echo
"
$target_path
"
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
\ No newline at end of file
qa_shell_script/base_script/buildNode.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
project
=
$1
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/config_file/command/node_version
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
config_file
=
${
params_arry
[1]
}
command
=
${
params_arry
[2]//\^/
}
node_version
=
${
params_arry
[3]
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
#第二步 关联配置文件
rm
-rf
./
$config_file
echo
"------ln -s
$config_path
/node/
$project
.* ./
$config_file
"
ln
-s
$config_path
/node/
$project
.
*
./
$config_file
npm config
set
"@types:registry"
http://registry.npmjs.org/
npm
--registry
http://172.16.3.15:4873
install
qa_shell_script/base_script/buildPython.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/config_file/command/node_version
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
config_file
=
${
params_arry
[1]
}
command
=
${
params_arry
[2]//\^/
}
node_version
=
${
params_arry
[3]
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
# 第一步 将nginx项目的所有文件进行打包
cd
$project_path
/
$project
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
else
npm
--registry
http://172.16.3.15:4873
install
fi
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
if
[
-n
"
$bower_json
"
]
;
then
echo
"bower install --allow-root"
bower
install
--allow-root
else
echo
"don't have bower.json"
fi
$command
# 第二步 不关机使得nginx生效
nginx
-t
;
nginx
-s
reload
\ No newline at end of file
qa_shell_script/base_script/buildUi.sh
0 → 100755
View file @
f75e953e
#!/bin/bash
project
=
$1
config_server
=
$2
project_path
=
$3
params
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc/config_file
`
params_arry
=(
${
params
//|/
}
)
desc
=
${
params_arry
[0]
}
config_file
=
${
params_arry
[1]
}
sh
$config_server
/show_info.sh
$project
BUILD
$desc
`
hostname
`
cd
$project_path
/
$project
setup_path_temp
=
`
find ./
-name
"setup.py"
`
python
${
setup_path_temp
}
install
#第四步 关联配置文件
rm
-rf
$config_file
ln
-s
$config_path
/python/
$project
.
*
$config_file
\ No newline at end of file
qa_shell_script/config_server/get_project_config.js
View file @
f75e953e
...
@@ -63,41 +63,41 @@ pClass.prototype = {
...
@@ -63,41 +63,41 @@ pClass.prototype = {
}
}
}
}
// --java
// --java
new
pClass
().
init
(
true
,
"
java
"
,
"
7003
"
,
"
api.xyqb.com
"
,
"
xyqb
"
,
false
,
"
QG
"
,
"
xyqb.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
现金贷-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7003
"
,
"
api.xyqb.com
"
,
"
xyqb
"
,
false
,
"
QG
"
,
"
xyqb.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
现金贷-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7025
"
,
"
btapi.xyqb.com
"
,
"
baitiao
"
,
true
,
"
baitiao
"
,
"
baitiao.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条-server
"
,
""
,
""
,
"
./baitiao-api/target
"
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7025
"
,
"
btapi.xyqb.com
"
,
"
baitiao
"
,
true
,
"
baitiao
"
,
"
baitiao.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
"
./baitiao-api/target
"
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7019
"
,
"
mallapi.xyqb.com
"
,
"
xyqb-mall
"
,
false
,
"
QG
"
,
"
mall.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
商城后台-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7019
"
,
"
mallapi.xyqb.com
"
,
"
xyqb-mall
"
,
false
,
"
QG
"
,
"
mall.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
商城后台-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7010
"
,
"
offapi.xyqb.com
"
,
"
xyqb-offline
"
,
false
,
"
QG
"
,
"
xyqb_offline.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
线下业务-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7010
"
,
"
offapi.xyqb.com
"
,
"
xyqb-offline
"
,
false
,
"
QG
"
,
"
xyqb_offline.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
线下业务-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7042
"
,
""
,
"
xyqb-user2
"
,
true
,
"
head_group
"
,
"
xyqb_user.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
用户注册登录-V2-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7042
"
,
""
,
"
xyqb-user2
"
,
true
,
"
head_group
"
,
"
xyqb_user.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
用户注册登录-V2-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7005
"
,
"
rapi.xyqb.com
"
,
"
di-ting
"
,
false
,
"
QG
"
,
"
di_ting.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
风控审计-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7005
"
,
"
rapi.xyqb.com
"
,
"
di-ting
"
,
false
,
"
QG
"
,
"
di_ting.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
风控审计-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7013
"
,
"
auth.xyqb.com
"
,
"
han-gu-guan
"
,
false
,
"
QG
"
,
"
han-gu-guan.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
用户注册登录-V1-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7013
"
,
"
auth.xyqb.com
"
,
"
han-gu-guan
"
,
false
,
"
QG
"
,
"
han-gu-guan.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
用户注册登录-V1-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7015
"
,
""
,
"
jian-men-guan
"
,
false
,
"
QG
"
,
"
jian_men_guan.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
信审服务-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7015
"
,
""
,
"
jian-men-guan
"
,
false
,
"
QG
"
,
"
jian_men_guan.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
信审服务-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7028
"
,
""
,
"
black-hole
"
,
false
,
"
QG
"
,
"
black-hole.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
合同中心-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7028
"
,
""
,
"
black-hole
"
,
false
,
"
QG
"
,
"
black-hole.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
合同中心-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7006
"
,
"
payapi.xyqb.com
"
,
"
gu-bei
"
,
true
,
"
funding
"
,
"
pay-center.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
支付中心-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7006
"
,
"
payapi.xyqb.com
"
,
"
gu-bei
"
,
true
,
"
funding
"
,
"
pay-center.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
支付中心-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7023
"
,
""
,
"
xyqb-quartz
"
,
false
,
"
QG
"
,
"
quartz.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
定时任务-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7023
"
,
""
,
"
xyqb-quartz
"
,
false
,
"
QG
"
,
"
quartz.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
定时任务-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7021
"
,
"
scapi.xyqb.com
"
,
"
spider-center
"
,
false
,
"
QG
"
,
"
spider-center.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
授信-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7021
"
,
"
scapi.xyqb.com
"
,
"
spider-center
"
,
false
,
"
QG
"
,
"
spider-center.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
授信-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7037
"
,
"
qapi.xyqb.com
"
,
"
cash-loan-flow
"
,
false
,
"
QG
"
,
"
cash_loan_flow.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
现金贷流量对接-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7037
"
,
"
qapi.xyqb.com
"
,
"
cash-loan-flow
"
,
false
,
"
QG
"
,
"
cash_loan_flow.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
现金贷流量对接-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7012
"
,
"
fsapi.xyqb.com
"
,
"
financial-system
"
,
false
,
"
QG
"
,
"
financial_system.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
财务系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7012
"
,
"
fsapi.xyqb.com
"
,
"
financial-system
"
,
false
,
"
QG
"
,
"
financial_system.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
财务系统-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7034
"
,
""
,
"
fund-manage
"
,
false
,
"
QG
"
,
"
fund_manage.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
债转系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7034
"
,
""
,
"
fund-manage
"
,
false
,
"
QG
"
,
"
fund_manage.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
债转系统-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7029
"
,
"
gyxdapi.xyqb.com
"
,
"
gyxd
"
,
false
,
"
QG
"
,
"
gyxd.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
广源小贷-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7029
"
,
"
gyxdapi.xyqb.com
"
,
"
gyxd
"
,
false
,
"
QG
"
,
"
gyxd.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
广源小贷-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7038
"
,
""
,
"
merchant-backend
"
,
false
,
"
QG
"
,
"
merchant.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
商户后台-server
"
,
"
凌子华/陈东亮
"
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7038
"
,
""
,
"
merchant-backend
"
,
false
,
"
QG
"
,
"
merchant.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
商户后台-server
"
,
"
凌子华/陈东亮
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7031
"
,
""
,
"
redpacket
"
,
true
,
"
baitiao
"
,
"
redpacket.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t > /dev/null 2>&1 &
"
,
null
,
2
,
"
红包系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7031
"
,
""
,
"
redpacket
"
,
true
,
"
baitiao
"
,
"
redpacket.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t > /dev/null 2>&1 &
"
,
null
,
2
,
"
红包系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7044
"
,
""
,
"
finance-api
"
,
false
,
"
bo.wang
"
,
"
finance-api.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
财务系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7044
"
,
""
,
"
finance-api
"
,
false
,
"
bo.wang
"
,
"
finance-api.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
财务系统-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7045
"
,
""
,
"
check-accounts
"
,
false
,
"
QG
"
,
"
check_accounts.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
对账系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7045
"
,
""
,
"
check-accounts
"
,
false
,
"
QG
"
,
"
check_accounts.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
对账系统-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7014
"
,
""
,
"
du-jiang-yan
"
,
false
,
"
QG
"
,
"
du_jiang_yan.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
第三方对接导流-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7014
"
,
""
,
"
du-jiang-yan
"
,
false
,
"
QG
"
,
"
du_jiang_yan.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
第三方对接导流-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7051
"
,
""
,
"
msg
"
,
false
,
"
micro-service
"
,
"
msg.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
新版消息中心
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7051
"
,
""
,
"
msg
"
,
false
,
"
micro-service
"
,
"
msg.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
新版消息中心
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7052
"
,
""
,
"
xyqb-btzt
"
,
true
,
"
qg-op-backend
"
,
"
xyqb-btzt.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投外部
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7052
"
,
""
,
"
xyqb-btzt
"
,
true
,
"
qg-op-backend
"
,
"
xyqb-btzt.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投外部
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7053
"
,
""
,
"
xyqb-btzt-internal
"
,
true
,
"
qg-op-backend
"
,
"
xyqb-btzt-internal.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投内部
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7053
"
,
""
,
"
xyqb-btzt-internal
"
,
true
,
"
qg-op-backend
"
,
"
xyqb-btzt-internal.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投内部
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7060
"
,
""
,
"
xyqb-backend
"
,
true
,
"
qg-op-backend
"
,
"
xyqb-backend.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
运营系统服务
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7060
"
,
""
,
"
xyqb-backend
"
,
true
,
"
qg-op-backend
"
,
"
xyqb-backend.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
运营系统服务
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7062
"
,
""
,
"
xyqb-user2-query
"
,
true
,
"
head_group
"
,
"
xyqb_user_query.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
用户系统查询服务
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7062
"
,
""
,
"
xyqb-user2-query
"
,
true
,
"
head_group
"
,
"
xyqb_user_query.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
用户系统查询服务
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7063
"
,
""
,
"
traffic-webapp
"
,
true
,
"
qg-op-backend
"
,
"
traffic.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
流量分发系统
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7063
"
,
""
,
"
traffic-webapp
"
,
true
,
"
qg-op-backend
"
,
"
traffic.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
流量分发系统
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7017
"
,
""
,
"
silk-road-eureka
"
,
true
,
"
baitiao
"
,
"
silk-road-eureka.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
Eureka 服务注册发现微服务
"
,
"
魏巍
"
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7017
"
,
""
,
"
silk-road-eureka
"
,
true
,
"
baitiao
"
,
"
silk-road-eureka.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
Eureka 服务注册发现微服务
"
,
"
魏巍
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7027
"
,
""
,
"
silk-road-caller
"
,
true
,
"
baitiao
"
,
"
silk-road-caller.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
MQ消息调用中心微服务
"
,
"
魏巍
"
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7027
"
,
""
,
"
silk-road-caller
"
,
true
,
"
baitiao
"
,
"
silk-road-caller.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
MQ消息调用中心微服务
"
,
"
魏巍
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7056
"
,
""
,
"
score
"
,
true
,
"
baitiao
"
,
"
score.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
积分系统
"
,
"
刑志超
"
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7056
"
,
""
,
"
score
"
,
true
,
"
baitiao
"
,
"
score.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
积分系统
"
,
"
刑志超
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7065
"
,
""
,
"
silk-road-backman
"
,
true
,
"
baitiao
"
,
"
silk-road-backman.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投-对内系统2
"
,
"
张曙
"
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7065
"
,
""
,
"
silk-road-backman
"
,
true
,
"
baitiao
"
,
"
silk-road-backman.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投-对内系统2
"
,
"
张曙
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7066
"
,
""
,
"
silk-road
"
,
true
,
"
baitiao
"
,
"
silk-road.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投-对外系统2
"
,
"
魏巍
"
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7066
"
,
""
,
"
silk-road
"
,
true
,
"
baitiao
"
,
"
silk-road.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投-对外系统2
"
,
"
魏巍
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7059
"
,
""
,
"
baitiao-zhitou
"
,
true
,
"
baitiao
"
,
"
baitiao-zhitou.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投-对接资金方
"
,
"
张斌
"
,
""
,
"
./xyqb-btzt-internal/target/
"
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7059
"
,
""
,
"
baitiao-zhitou
"
,
true
,
"
baitiao
"
,
"
baitiao-zhitou.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
白条直投-对接资金方
"
,
"
张斌
"
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
"
./xyqb-btzt-internal/target/
"
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7068
"
,
""
,
"
customer_helpdesk
"
,
true
,
"
data-riskcontrol
"
,
"
customer_helpdesk.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
外部客服-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
false
,
"
java
"
,
"
7068
"
,
""
,
"
customer_helpdesk
"
,
true
,
"
data-riskcontrol
"
,
"
customer_helpdesk.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
外部客服-server
"
,
""
,
"
mvn clean package -Ptest -Dmaven.test.skip=true
"
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7069
"
,
""
,
"
notify
"
,
true
,
"
fund_pay
"
,
"
notify.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
支付中心消息通知系统-server
"
,
""
,
""
,
""
);
new
pClass
().
init
(
true
,
"
java
"
,
"
7069
"
,
""
,
"
notify
"
,
true
,
"
fund_pay
"
,
"
notify.log
"
,
"
application.properties
"
,
"
--worker 1 --currentWorker 1 -t -ts > /dev/null 2>&1 &
"
,
null
,
2
,
"
支付中心消息通知系统-server
"
,
""
,
"
mvn clean package -Pdev -Dmaven.test.skip=true
"
,
""
);
// ui----
// ui----
...
@@ -166,16 +166,21 @@ configFunction.prototype = {
...
@@ -166,16 +166,21 @@ configFunction.prototype = {
if
(
typeof
projects
[
pName
]
==
"
undefined
"
)
{
if
(
typeof
projects
[
pName
]
==
"
undefined
"
)
{
console
.
log
(
""
)
console
.
log
(
""
)
}
else
{
}
else
{
if
(
typeof
projects
[
pName
][
pAttr
]
==
"
undefined
"
)
{
var
attrs
=
pAttr
.
split
(
"
/
"
);
console
.
log
(
""
)
if
(
attrs
.
length
==
0
)
{
}
else
{
if
(
projects
[
pName
][
pAttr
])
{
console
.
log
(
projects
[
pName
][
pAttr
])
}
else
{
console
.
log
(
""
)
console
.
log
(
""
)
return
}
}
var
list
=
[];
for
(
var
j
=
0
;
j
<
attrs
.
length
;
j
++
)
{
if
(
projects
[
pName
][
attrs
[
j
]]){
list
.
push
(
projects
[
pName
][
attrs
[
j
]].
split
(
"
"
).
join
(
"
^
"
));
}
else
{
list
.
push
(
"
"
);
}
}
}
console
.
log
(
list
.
join
(
"
|
"
))
}
}
},
},
getProjectsAttrs
:
function
(
projects
,
attr
)
{
getProjectsAttrs
:
function
(
projects
,
attr
)
{
...
...
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