From f94ceb86e0cf8643fa9a93b97ea3e851c012f013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Mon, 19 Jul 2021 00:06:12 +0800 Subject: [PATCH] Update build.sh --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index add40303..d528bb77 100644 --- a/build.sh +++ b/build.sh @@ -13,4 +13,11 @@ mv $BuildDir/report-ui/dist $BuildDir/report-core/src/main/resources/static echo "build springboot" cd $BuildDir/report-core -mvn clean & package -Dmaven.test.skip=true >/dev/null 2>&1 +mvn clean >/dev/null 2>&1 +mvn package -Dmaven.test.skip=true >/dev/null 2>&1 + +echo "zip finish in build dir" +mkdir $BuildDir/build +mv $BuildDir/report-core/target/report-core-1.0.0-SNAPSHOT-assembly.zip $BuildDir/build/ +cd $BuildDir/ +git reset --hard >/dev/null 2>&1 \ No newline at end of file