ci: 构建移除本地缓存

This commit is contained in:
fit2-zhao 2024-06-12 18:50:55 +08:00 committed by Craftsman
parent 939ac5f94d
commit 76601cf43c
1 changed files with 2 additions and 1 deletions

1
Jenkinsfile vendored
View File

@ -66,6 +66,7 @@ pipeline {
LOCAL_REPOSITORY=$(./mvnw help:evaluate -Dexpression=settings.localRepository --settings ./settings.xml -q -DforceStdout) LOCAL_REPOSITORY=$(./mvnw help:evaluate -Dexpression=settings.localRepository --settings ./settings.xml -q -DforceStdout)
rm -rf $LOCAL_REPOSITORY/io/metersphere/metersphere-jmeter-assertions/* rm -rf $LOCAL_REPOSITORY/io/metersphere/metersphere-jmeter-assertions/*
rm -rf $LOCAL_REPOSITORY/io/metersphere/metersphere-jmeter-functions/* rm -rf $LOCAL_REPOSITORY/io/metersphere/metersphere-jmeter-functions/*
rm -rf $LOCAL_REPOSITORY/io/metersphere/monitoring-engine/*
./mvnw clean install -Drevision=${REVISION} -DskipTests --settings ./settings.xml ./mvnw clean install -Drevision=${REVISION} -DskipTests --settings ./settings.xml
mkdir -p backend/app/target/dependency && (cd backend/app/target/dependency && jar -xf ../*.jar); mkdir -p backend/app/target/dependency && (cd backend/app/target/dependency && jar -xf ../*.jar);