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
348afa4d
Commit
348afa4d
authored
Feb 20, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c3ab8795
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
+8
-9
2_get_code_by_name.sh
qa_shell_script/2_get_code_by_name.sh
+0
-2
2_get_code_by_type.sh
qa_shell_script/2_get_code_by_type.sh
+1
-1
3_link_config_file_by_name.sh
qa_shell_script/3_link_config_file_by_name.sh
+2
-2
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+3
-4
5_restart_by_name.sh
qa_shell_script/5_restart_by_name.sh
+2
-0
No files found.
qa_shell_script/2_get_code_by_name.sh
View file @
348afa4d
...
...
@@ -6,8 +6,6 @@ config_server="$pwd_path/config_server"
project_path
=
`
cat
$config_server
/project_path.sh
`
config_path
=
`
cat
$config_server
/config_path.sh
`
#echo -e "\033[40;32m 执行2_get_code_by_name \033[0m"
cd
$project_path
project_folder
=
`
find ./
-maxdepth
1
-name
"
$project_name
"
`
if
[
-n
"
$project_folder
"
]
;
then
...
...
qa_shell_script/2_get_code_by_type.sh
View file @
348afa4d
...
...
@@ -50,9 +50,9 @@ elif [ "$project_type" = "python" ]
then
getCode python
else
getCode java
getCode ui
getCode node
getCode python
getCode java
fi
\ No newline at end of file
qa_shell_script/3_link_config_file_by_name.sh
View file @
348afa4d
...
...
@@ -24,10 +24,10 @@ else
if
$is_public_ip
&&
[
-n
"
$is_public_ip
"
]
then
echo
"-------link-
$project
--
$config_path
/public/
$project_type
/
$project
.*----/home/quant_group/
$project
/
$file
"
cp
$config_path
/public/
$project_type
/
${
project
}
.
*
/home/quant_group/
${
project
}
/
$file
cp
-r
$config_path
/public/
$project_type
/
${
project
}
.
*
/home/quant_group/
${
project
}
/
$file
else
echo
"-------link-
$project
--
$config_path
/
$project_type
/
$project
.*----/home/quant_group/
$project
/
$file
"
cp
$config_path
/
$project_type
/
${
project
}
.
*
/home/quant_group/
${
project
}
/
$file
cp
-r
$config_path
/
$project_type
/
${
project
}
.
*
/home/quant_group/
${
project
}
/
$file
fi
else
if
$is_public_ip
&&
[
-n
"
$is_public_ip
"
]
...
...
qa_shell_script/4_build_by_name.sh
View file @
348afa4d
...
...
@@ -40,7 +40,6 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
# cd ./target
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
mv
$project_path
/
$project
/target/
*
.jar
$project_path
/
$project
/
$project
.jar
...
...
@@ -62,9 +61,9 @@ function buildUiProject()
if
$is_public_ip
&&
[
-n
"
$is_public_ip
"
]
then
cp
$config_path
/public/ui/
$project
.
*
$project_path
/
$project
/
$config_file
cp
-r
$config_path
/public/ui/
$project
.
*
$project_path
/
$project
/
$config_file
else
cp
$config_path
/ui/
$project
.
*
$project_path
/
$project
/
$config_file
cp
-r
$config_path
/ui/
$project
.
*
$project_path
/
$project
/
$config_file
fi
imagemin_dist
=
`
grep
-n
-A3
"imagemin"
*
.js|awk
'{print $1}'
`
...
...
@@ -126,7 +125,7 @@ function buildPythonProject()
python
${
setup_path_temp
}
install
#第四步 关联配置文件
rm
-rf
$config_file
ln
-s
$config_path
/python/
$project
.
*
$config_file
ln
-s
$config_path
/python/
$project
.
*
$config_file
}
if
[
"
$project_type
"
=
"java"
]
;
then
...
...
qa_shell_script/5_restart_by_name.sh
View file @
348afa4d
...
...
@@ -37,9 +37,11 @@ function restartJavaProject()
echo
"no have"
if
$is_public_ip
&&
[
-n
"
$is_public_ip
"
]
then
rm
-rf
/home/quant_group/
${
project
}
/application.properties
echo
"ln -s
$config_path
/public/java/
${
project
}
.* /home/quant_group/
${
project
}
/application.properties"
ln
-s
$config_path
/public/java/
${
project
}
.
*
/home/quant_group/
${
project
}
/application.properties
else
rm
-rf
/home/quant_group/
${
project
}
/application.properties
echo
"ln -s
$config_path
/java/
${
project
}
.* /home/quant_group/
${
project
}
/application.properties"
ln
-s
$config_path
/java/
${
project
}
.
*
/home/quant_group/
${
project
}
/application.properties
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