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
0805d0b5
Commit
0805d0b5
authored
May 05, 2017
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新为sshpass方式
parent
2119972f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
remote_excute_new.sh
remote_excute_new.sh
+27
-0
No files found.
remote_excute_new.sh
0 → 100755
View file @
0805d0b5
#!/bin/bash
ip_last
=
$1
project_name
=
$2
branch_name
=
$3
project_type
=
$4
public_ip
=
$5
set timeout
1200
ip
=
192.168.4.
$ip_last
echo
"参数为:
#init_shell_script:
${
init_shell_script
}
ip :
${
ip
}
project_name :
${
project_name
}
branch_name :
${
branch_name
}
project_type :
${
project_type
}
public_ip :
${
public_ip
}
"
if
[
-n
"
$project_name
"
]
&&
[
-n
"
$branch_name
"
]
;
then
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
cd
/home/qa-deploy-utils/qa_shell_script
sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_name.sh
$project_name
$branch_name
$public_ip
else
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
cd
/home/qa-deploy-utils/qa_shell_script
sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_type.sh
$project_type
$branch_name
$public_ip
fi
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