chore: 删除本地部分缓存

This commit is contained in:
CaptainB 2024-02-23 14:36:11 +08:00
parent 2bd88f72ae
commit d86c324b3a
1 changed files with 5 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -61,8 +61,12 @@ 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/*
rm -rf $LOCAL_REPOSITORY/io/metersphere/metersphere-jmeter-assertions/*
rm -rf $LOCAL_REPOSITORY/io/metersphere/metersphere-jmeter-functions/*
mvn clean install -Drevision=${REVISION} -DskipTests --settings ./settings.xml
mkdir -p backend/app/target/dependency && (cd backend/app/target/dependency && jar -xf ../*.jar);
'''