diff --git a/Jenkinsfile b/Jenkinsfile index 3a7ead72ca..1385cf8d2f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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); '''