ci4sManagement-cloud/k8s/build-java.sh

26 lines
404 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
baseDir="/home/somuns/ci4s"
#判断$1是否为all如果是则编译所有模块否则只编译management-platform模块
if [ "$1" == "all" ]; then
buildDir=$baseDir
else
buildDir="$baseDir/ruoyi-modules/management-platform"
fi
echo "Building $buildDir"
cd $buildDir && mvn clean install
if [ $? -ne 0 ]; then
echo "Failed to build ruoyi-modules"
exit 1
fi