From 6ef21522012f23bfff53b7c76acbbe2649492511 Mon Sep 17 00:00:00 2001 From: kira Date: Fri, 5 May 2023 18:49:04 +0800 Subject: [PATCH] =?UTF-8?q?yinruoxi:=201.=E4=B8=8A=E4=BC=A0jenkins?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8748b9a1..b8e37036 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,15 @@ node { + def workspace=pwd() // 版本 def tag = "0.8" // 镜像仓库的地址 // def harbor_url = "192.168.81.102:85" // 镜像仓库的项目,这里建议项目名称和jenkins的item项目名称、以及harbor的项目名称保持一致,否则用一下脚本会出问题 // def harbor_project = "demo" - + def mavenPath="/usr/share/maven" + tools { + maven 'Maven 3.8.8' + } // 拉取代码 stage('pull code') { checkout([$class: 'GitSCM', branches: [[name: '*/${branch}']], extensions: [], userRemoteConfigs: [[credentialsId: '0f6d6eaa8754e735262afa495fe2828d611fca17', url: 'http://39.105.23.186:3000/develop/digimeta-MultiSaas.git']]]) @@ -47,4 +51,4 @@ node { //echo "镜像推送成功" //} } -} +} \ No newline at end of file