From eeda38ce140ae889016d474ae535421fd5ca4802 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 17 Mar 2022 19:34:59 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BD=BF=E7=94=A8jdk11=E8=BF=90?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index d5d3987840..c6d19446e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,6 +14,7 @@ pipeline { steps { configFileProvider([configFile(fileId: 'metersphere-maven', targetLocation: 'settings.xml')]) { sh 'export JAVA_HOME=/opt/jdk-11;export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH;export PATH=$JAVA_HOME/bin:$PATH' + sh 'java -version' sh "./mvnw clean package --settings ./settings.xml" sh "mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar)" }