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
4fb04fe9
Commit
4fb04fe9
authored
Jul 18, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
fc7584b0
fc0349a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
.exception_sub_shell.sh.swp
qa_shell_script/.exception_sub_shell.sh.swp
+0
-0
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+3
-1
2_get_code_by_name.sh
qa_shell_script/2_get_code_by_name.sh
+1
-1
2_get_code_by_type.sh
qa_shell_script/2_get_code_by_type.sh
+1
-1
No files found.
qa_shell_script/.exception_sub_shell.sh.swp
0 → 100644
View file @
4fb04fe9
File added
qa_shell_script/1_mount_config_files.sh
View file @
4fb04fe9
...
@@ -49,13 +49,15 @@ else
...
@@ -49,13 +49,15 @@ else
spawn ssh root@
${
IP_host_first
}${
target_ip
}
spawn ssh root@
${
IP_host_first
}${
target_ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
umount -l /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
send
\"
mkdir -p /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
mkdir -p /home/qa-deploy-utils/qa_shell_script
\r\"
set timeout -1
set timeout -1
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
mount -t nfs 192.168.4.3:/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
mount -t nfs 192.168.4.3:/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script
\r\"
set timeout -1
set timeout -1
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
umount
$config_files
\r\"
send
\"
umount
-l
$config_files
\r\"
set timeout -1
set timeout -1
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
rm -rf
$config_files
\r\"
send
\"
rm -rf
$config_files
\r\"
...
...
qa_shell_script/2_get_code_by_name.sh
View file @
4fb04fe9
...
@@ -13,7 +13,7 @@ if [ -n "$project_folder" ];then
...
@@ -13,7 +13,7 @@ if [ -n "$project_folder" ];then
type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
if
[
"
$type
"
=
"node"
]
;
then
if
[
"
$type
"
=
"node"
]
;
then
command2
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
command2
`
command2
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
command2
`
command2
$
command2
fi
fi
sh
$config_server
/show_info.sh
$project_name
pull代码
$desc
$3
sh
$config_server
/show_info.sh
$project_name
pull代码
$desc
$3
cd
./
$project_name
cd
./
$project_name
...
...
qa_shell_script/2_get_code_by_type.sh
View file @
4fb04fe9
...
@@ -16,7 +16,7 @@ function getCode()
...
@@ -16,7 +16,7 @@ function getCode()
type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
if
[
"
$type
"
=
"node"
]
;
then
if
[
"
$type
"
=
"node"
]
;
then
command2
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
command2
`
command2
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
command2
`
command2
$
command2
fi
fi
cd
$project_path
cd
$project_path
project_folder
=
`
find ./
-maxdepth
1
-name
"
$project
"
`
project_folder
=
`
find ./
-maxdepth
1
-name
"
$project
"
`
...
...
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