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
29dbd412
Commit
29dbd412
authored
May 18, 2017
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新按类型脚本
parent
22baf912
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
9 deletions
+33
-9
2_get_code_by_type.sh
qa_shell_script/2_get_code_by_type.sh
+3
-3
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+6
-2
show_info.sh
qa_shell_script/config_server/show_info.sh
+3
-3
deploy_project_by_type.sh
qa_shell_script/deploy_project_by_type.sh
+21
-1
No files found.
qa_shell_script/2_get_code_by_type.sh
View file @
29dbd412
...
...
@@ -50,9 +50,9 @@ elif [ "$project_type" = "python" ]
then
getCode python
else
getCode ui
getCode node
getCode python
getCode java
getCode python
getCode node
getCode ui
fi
qa_shell_script/5_restart_by_type.sh
View file @
29dbd412
...
...
@@ -55,8 +55,8 @@ function restartJavaProject()
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 &
`
fi
#sleep 3
0s
ack
"
$ack_phrase
"
$project_path
/logs/
$log_name
${
max_wait_log_generate_time
}
${
max_wait_ack_time
}
sleep
1
0s
#
ack "$ack_phrase" $project_path/logs/$log_name ${max_wait_log_generate_time} ${max_wait_ack_time}
done
}
...
...
@@ -172,8 +172,12 @@ elif [ "$project_type" = "python" ]; then
elif
[
"
$project_type
"
=
"ui"
]
;
then
restartUiProject
else
echo
"***restart node***"
restartNodeProject
echo
"***restart python***"
restartPythonProject
echo
"***restart ui***"
restartUiProject
echo
"***restart java***"
restartJavaProject
fi
qa_shell_script/config_server/show_info.sh
View file @
29dbd412
#!/bin/bash
echo
"
\"
--------------------------------------------
\"
"
echo
"
\"
--------项目
$1
将要
$2
\"
"
echo
"
\"
--------项目描述:
$3
\"
"
echo
"
\"
--------------------------------------------
\"
"
\ No newline at end of file
echo
"
\"
--------项目
$1
将要
$2
\"
"
echo
"
\"
--------项目描述:
$3
\"
"
echo
"
\"
--------------------------------------------
\"
"
qa_shell_script/deploy_project_by_type.sh
View file @
29dbd412
#!/bin/bash
date
project_type
=
$1
branch_name
=
$2
public_ip
=
$3
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/project_path.sh
`
config_path
=
`
cat
$config_server
/config_path.sh
`
if
[
"
$project_type
"
=
"all"
]
then
projects
=(
`
node
$config_server
/get_project_config.js
-type
ui
-attr
name
`
)
echo
${#
projects
[@]
}
"个ui项目:"
${
projects
[@]
}
projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
echo
${#
projects
[@]
}
"个java项目:"
${
projects
[@]
}
projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
echo
${#
projects
[@]
}
"个node项目:"
${
projects
[@]
}
projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
echo
${#
projects
[@]
}
"个python项目:"
${
projects
[@]
}
else
projects
=(
`
node
$config_server
/get_project_config.js
-type
$1
-attr
name
`
)
echo
${#
projects
[@]
}
"个"
$1
"项目:"
${
projects
[@]
}
fi
sh 2_get_code_by_type.sh
$project_type
$branch_name
sh 3_link_config_file_by_type.sh
$project_type
$public_ip
sh 4_build_by_type.sh
$project_type
$public_ip
sh 5_restart_by_type.sh
$project_type
$public_ip
\ No newline at end of file
sh 5_restart_by_type.sh
$project_type
$public_ip
date
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