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
bb8f6929
Commit
bb8f6929
authored
Feb 16, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9a7f88f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
30 deletions
+2
-30
2_get_code_by_name.sh
qa_shell_script/2_get_code_by_name.sh
+2
-0
5_restart_by_name.sh
qa_shell_script/5_restart_by_name.sh
+0
-6
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+0
-6
remote_excute.sh
qa_shell_script/remote_excute.sh
+0
-18
No files found.
qa_shell_script/2_get_code_by_name.sh
View file @
bb8f6929
...
@@ -6,6 +6,8 @@ config_server="$pwd_path/config_server"
...
@@ -6,6 +6,8 @@ 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
`
echo
-e
“
\0
33[32m start 2_get_code_by_name.sh
\0
33[0m”
cd
$project_path
cd
$project_path
project_folder
=
`
find ./
-maxdepth
1
-name
"
$project_name
"
`
project_folder
=
`
find ./
-maxdepth
1
-name
"
$project_name
"
`
if
[
-n
"
$project_folder
"
]
;
then
if
[
-n
"
$project_folder
"
]
;
then
...
...
qa_shell_script/5_restart_by_name.sh
View file @
bb8f6929
...
@@ -45,12 +45,6 @@ function restartJavaProject()
...
@@ -45,12 +45,6 @@ function restartJavaProject()
fi
fi
fi
fi
#if [ "$project" = "xyqb-mall" ]
#then
# rm -rf /home/quant_group/xyqb-mall/baitiao
# echo `ln -s $config_path/pem_file/ /home/quant_group/xyqb-mall/baitiao/`
#fi
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 &"
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
`
log_name
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
log_name
`
...
...
qa_shell_script/5_restart_by_type.sh
View file @
bb8f6929
...
@@ -47,12 +47,6 @@ function restartJavaProject()
...
@@ -47,12 +47,6 @@ function restartJavaProject()
fi
fi
fi
fi
#if [ "$project" = "xyqb-mall" ]
#then
# rm -rf /home/quant_group/xyqb-mall/baitiao
# echo `ln -s $config_path/pem_file /home/quant_group/xyqb-mall/baitiao`
#fi
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 &"
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 &"
#echo `java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${project}.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${project}.jar --worker 1 --currentWorker 1 -t > /dev/null 2>&1 &`
#echo `java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${project}.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${project}.jar --worker 1 --currentWorker 1 -t > /dev/null 2>&1 &`
if
[[
$project
==
"redpacket"
]]
;
then
if
[[
$project
==
"redpacket"
]]
;
then
...
...
qa_shell_script/remote_excute.sh
View file @
bb8f6929
...
@@ -14,24 +14,6 @@ branch_name : ${branch_name}
...
@@ -14,24 +14,6 @@ branch_name : ${branch_name}
project_type :
${
project_type
}
project_type :
${
project_type
}
public_ip :
${
public_ip
}
public_ip :
${
public_ip
}
"
"
#初始化脚本环境
#if $init_shell_script ;then
# expect -c "
# set timeout 10
# spawn ssh root@${ip}
# expect *ssword* { send !QAZ2wsx\r }
# expect \"]#\"
# send \"rm -rf /home/qa-deploy-utils/qa_shell_script\r\"
# expect \"]#\"
# send \"cd /home\r\"
# expect \"]#\"
# send \"git clone http://shengcong.gan:12345678@gitabc.xyqb.com/QA/qa-deploy-utils.git\r\"
# expect \"]#\"
# send \"exit\r\"
# expect eof;"
#fi
if
[
-n
"
$project_name
"
]
&&
[
-n
"
$branch_name
"
]
;
then
if
[
-n
"
$project_name
"
]
&&
[
-n
"
$branch_name
"
]
;
then
expect
-c
"
expect
-c
"
...
...
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