From 53d082a135d7e5d42f12446571222b4ad822c991 Mon Sep 17 00:00:00 2001 From: msb_134187 Date: Wed, 22 May 2024 14:32:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 098e25f..c9356c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stages { // 定义流水线中的各个阶段 stage('拉取git仓库代码') { // 阶段1:从Git仓库拉取代码 steps { - echo '拉取git仓库代码--成功' // 打印信息表示拉取代码阶段成功完成 + checkout scmGit(branches: [[name: '${tag}']], extensions: [], userRemoteConfigs: [[url: 'https://git.mashibing.com/msb_134187/ljj_spring_test.git']]) } } stage('maven打包') { // 阶段2:使用maven进行应用打包