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
0b1e354c
Commit
0b1e354c
authored
Feb 15, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
90ae8f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
remote_excute.sh
qa_shell_script/remote_excute.sh
+6
-16
No files found.
qa_shell_script/remote_excute.sh
View file @
0b1e354c
#!/bin/bash
#!/bin/bash
init_shell_script
=
$1
ip_last
=
$1
ip_last
=
$2
project_name
=
$2
project_name
=
$3
branch_name
=
$3
branch_name
=
$4
project_type
=
$4
project_type
=
$5
public_ip
=
$5
public_ip
=
$6
set timeout
1200
set timeout
1200
ip
=
192.168.4.
$ip_last
ip
=
192.168.4.
$ip_last
echo
"参数为:
echo
"参数为:
...
@@ -42,16 +41,7 @@ if [ -n "$project_name" ] && [ -n "$branch_name" ]; then
...
@@ -42,16 +41,7 @@ if [ -n "$project_name" ] && [ -n "$branch_name" ]; then
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
sh 2_get_code_by_name.sh
$project_name
$branch_name
\r\"
send
\"
sh deploy_project_by_name.sh
$project_name
$branch_name
$public_ip
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
sh 3_link_config_file_by_name.sh
$project_name
$public_ip
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
sh 4_build_by_name.sh
$project_name
$public_ip
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
sh 5_restart_by_name.sh
$project_name
$public_ip
\r\"
set timeout -1
set timeout -1
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
exit
\r\"
send
\"
exit
\r\"
...
...
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