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