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
e1702a03
Commit
e1702a03
authored
Aug 21, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8acda11c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
2_get_code_by_name.sh
qa_shell_script/2_get_code_by_name.sh
+2
-1
2_get_code_by_type.sh
qa_shell_script/2_get_code_by_type.sh
+3
-2
No files found.
qa_shell_script/2_get_code_by_name.sh
View file @
e1702a03
...
@@ -19,7 +19,7 @@ if [ -n "$project_folder" ];then
...
@@ -19,7 +19,7 @@ if [ -n "$project_folder" ];then
cd
./
$project_name
cd
./
$project_name
git checkout ./
git checkout ./
git fetch
git fetch
git reset FETCH_HEAD
--hard
#git pull
#git pull
if
[
-n
"
$git_branch
"
]
;
then
if
[
-n
"
$git_branch
"
]
;
then
echo
"checkout specified branch
$git_branch
"
echo
"checkout specified branch
$git_branch
"
...
@@ -38,6 +38,7 @@ if [ -n "$project_folder" ];then
...
@@ -38,6 +38,7 @@ if [ -n "$project_folder" ];then
echo
"current branch:
$git_branch
"
echo
"current branch:
$git_branch
"
git pull
git pull
fi
fi
git reset FETCH_HEAD
--hard
else
else
desc
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
desc
`
desc
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
desc
`
sh
$config_server
/show_info.sh
$project_name
clone代码
$desc
$3
sh
$config_server
/show_info.sh
$project_name
clone代码
$desc
$3
...
...
qa_shell_script/2_get_code_by_type.sh
View file @
e1702a03
...
@@ -24,8 +24,7 @@ function getCode()
...
@@ -24,8 +24,7 @@ function getCode()
echo
"sh
$config_server
/show_info.sh
$project
pull代码
$desc
$3
"
echo
"sh
$config_server
/show_info.sh
$project
pull代码
$desc
$3
"
sh
$config_server
/show_info.sh
$project
pull代码
$desc
$3
sh
$config_server
/show_info.sh
$project
pull代码
$desc
$3
cd
./
$project
cd
./
$project
echo
"git reset FETCH_HEAD --hard"
git reset FETCH_HEAD
--hard
echo
"git checkout ./"
echo
"git checkout ./"
git checkout ./
git checkout ./
echo
"git fetch"
echo
"git fetch"
...
@@ -50,6 +49,8 @@ function getCode()
...
@@ -50,6 +49,8 @@ function getCode()
git_branch
=
$2
git_branch
=
$2
fi
fi
git pull
git pull
echo
"git reset FETCH_HEAD --hard"
git reset FETCH_HEAD
--hard
git branch
git branch
else
else
sh
$config_server
/show_info.sh
$project
clone代码
$desc
$3
sh
$config_server
/show_info.sh
$project
clone代码
$desc
$3
...
...
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