build: 清理并重新加载自定义包

This commit is contained in:
fit2-zhao 2024-02-23 14:14:51 +08:00 committed by 刘瑞斌
parent 1e674497e5
commit aaf93702e1
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

@ -61,6 +61,8 @@ pipeline {
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:/opt/apache-maven-3.8.3/bin:$PATH
java -version
LOCAL_REPOSITORY=$(./mvnw help:evaluate -Dexpression=settings.localRepository --settings ./settings.xml -q -DforceStdout)
rm -rf $LOCAL_REPOSITORY/io/metersphere/*
mvn clean install -Drevision=${REVISION} -DskipTests --settings ./settings.xml
mkdir -p backend/app/target/dependency && (cd backend/app/target/dependency && jar -xf ../*.jar);
'''