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
58146316
Commit
58146316
authored
Aug 10, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加jenkins构建后脚本
parent
3e933b83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
deploy_project_by_name.sh
qa_shell_script/deploy_project_by_name.sh
+6
-0
post_build_script.sh
qa_shell_script/post_build_script.sh
+22
-0
No files found.
qa_shell_script/deploy_project_by_name.sh
View file @
58146316
...
@@ -11,6 +11,12 @@ else
...
@@ -11,6 +11,12 @@ else
exit
-1
exit
-1
fi
fi
sh /home/qa-deploy-utils/qa_shell_script/3_link_config_file_by_name.sh
$project_name
$public_ip
$4
sh /home/qa-deploy-utils/qa_shell_script/3_link_config_file_by_name.sh
$project_name
$public_ip
$4
if
[
$?
=
0
]
;
then
echo
"3_link_config_file_by_name.sh ok"
else
echo
"3_link_config_file_by_name.sh fail"
exit
-1
fi
sh /home/qa-deploy-utils/qa_shell_script/4_build_by_name.sh
$project_name
$public_ip
$4
sh /home/qa-deploy-utils/qa_shell_script/4_build_by_name.sh
$project_name
$public_ip
$4
if
[
$?
=
0
]
;
then
if
[
$?
=
0
]
;
then
echo
"4_build_by_name ok"
echo
"4_build_by_name ok"
...
...
qa_shell_script/post_build_script.sh
0 → 100644
View file @
58146316
#!/bin/bash
cd
$JENKINS_HOME
/jobs/
$JOB_BASE_NAME
/builds/
${
BUILD_NUMBER
}
res
=
`
grep
"2_get_code_by_name fail"
log
`
if
[
-n
"
$res
"
]
;
then
echo
"2_get_code_by_name fail"
exit
-1
fi
res
=
`
grep
"3_link_config_file_by_name.sh fail"
log
`
if
[
-n
"
$res
"
]
;
then
echo
"3_link_config_file_by_name.sh fail"
exit
-1
fi
res
=
`
grep
"4_build_by_name fail"
log
`
if
[
-n
"
$res
"
]
;
then
echo
"4_build_by_name fail"
exit
-1
fi
res
=
`
grep
"5_restart_by_name fail"
log
`
if
[
-n
"
$res
"
]
;
then
echo
"5_restart_by_name fail"
exit
-1
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