From c6ca0a549ffa00316c19fbb219c95f4374ea0f32 Mon Sep 17 00:00:00 2001 From: sundayenglish Date: Tue, 29 Oct 2024 16:47:37 +0700 Subject: [PATCH] fix excel --- Jenkinsfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 44915f0..aa971f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,17 +8,9 @@ pipeline { stages { stage('Checkout Code') { steps { - // Jenkins Git plugin will handle the clone and checkout automatically - // checkout([ - // $class: 'GitSCM', - // branches: [[name: "*/${BRANCH}"]], - // userRemoteConfigs: [[url: GIT_URL]] - // ]) - - sh "cd /projects" - sh "pwd" - sh "git --version" + sh "git pull origin ${BRANCH}" } + sh "pwd" } } post { @@ -29,4 +21,4 @@ pipeline { echo "Failed to pull code from the repository." } } -} +} \ No newline at end of file