ci4sManagement-cloud/k8s/build-java.sh

34 lines
649 B
Bash
Executable File
Raw Permalink 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
elif [ "$1" == "manage" ]; then
buildDir="$baseDir/ruoyi-modules/management-platform"
elif [ "$1" == "auth" ]; then
buildDir="$baseDir/ruoyi-auth"
elif [ "$1" == "gateway" ]; then
buildDir="$baseDir/ruoyi-gateway"
elif [ "$1" == "system" ]; then
buildDir="$baseDir/ruoyi-modules/ruoyi-system"
fi
echo "Building $buildDir"
cd $buildDir && mvn clean install
if [ $? -ne 0 ]; then
echo "Failed to build ruoyi-modules"
exit 1
fi