From b22378bb40139fba226870972866989813a507aa Mon Sep 17 00:00:00 2001 From: sundayenglish Date: Tue, 29 Oct 2024 16:18:57 +0700 Subject: [PATCH] fix excel --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9908904..9eade02 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,13 @@ pipeline { stages { stage('Checkout Code') { steps { - sh "git pull origin ${BRANCH}" + // Jenkins Git plugin will handle the clone and checkout automatically + checkout([ + $class: 'GitSCM', + branches: [[name: "*/${BRANCH}"]], + userRemoteConfigs: [[url: GIT_URL]] + ]) + sh "touch demo.php" } }