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
f2e43328
Commit
f2e43328
authored
Jul 19, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change baitiao-zhitou mvn command
parent
01aeaefe
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
97 deletions
+87
-97
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+8
-17
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+9
-15
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+70
-65
No files found.
qa_shell_script/4_build_by_name.sh
View file @
f2e43328
...
...
@@ -21,10 +21,11 @@ function buildJavaProject()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
target_path
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
target_path
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
cd
$project_path
/
$project
rm
-rf
./target/
rm
-rf
$target_path
rm
-rf
$project
.jar
if
[[
"
$project
"
=
"xyqb"
||
"
$project
"
=
"gu-bei"
||
"
$project
"
=
"han-gu-guan"
||
"
$project
"
=
"di-ting"
||
"
$project
"
=
"xyqb-offline"
||
"
$project
"
=
"xyqb-user2"
]]
;
then
...
...
@@ -40,26 +41,16 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
# if [[ "$project" = "baitiao" ]]; then
# num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# echo "----$project-----pom.xml file line: $num------------"
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
if
[[
$project
==
"baitiao"
]]
;
then
mv
$project_path
/
$project
/baitiao-api/target/
*
.jar
$project_path
/
$project
/
$project
.jar
else
mv
$project_path
/
$project
/target/
*
.jar
$project_path
/
$project
/
$project
.jar
fi
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
}
function
buildUiProject
()
...
...
qa_shell_script/4_build_by_type.sh
View file @
f2e43328
...
...
@@ -18,10 +18,11 @@ function buildJavaProject()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
echo
target_path
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
target_path
`
sh
$config_server
/show_info.sh
$project
"打包BUILD"
$desc
$2
cd
$project_path
/
$project
rm
-rf
./target/
rm
-rf
$target_path
rm
-rf
$project
.jar
if
[[
"
$project
"
=
"xyqb"
||
"
$project
"
=
"gu-bei"
||
"
$project
"
=
"han-gu-guan"
||
"
$project
"
=
"di-ting"
||
"
$project
"
=
"xyqb-offline"
||
"
$project
"
=
"xyqb-user2"
]]
;
then
...
...
@@ -36,22 +37,15 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
# if [[ "$project" = "baitiao" ]]; then
# num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# echo "----$project-----pom.xml file line: $num------------"
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
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
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
}
function
buildUiProject
()
...
...
qa_shell_script/config_server/get_project_config.js
View file @
f2e43328
This diff is collapsed.
Click to expand it.
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