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" } }