master
sundayenglish 9 months ago
parent 1866ab1a94
commit c6ca0a549f
  1. 14
      Jenkinsfile

14
Jenkinsfile vendored

@ -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."
}
}
}
}
Loading…
Cancel
Save