|
|
@ -9,12 +9,13 @@ pipeline { |
|
|
|
stage('Checkout Code') { |
|
|
|
stage('Checkout Code') { |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
// Jenkins Git plugin will handle the clone and checkout automatically |
|
|
|
// Jenkins Git plugin will handle the clone and checkout automatically |
|
|
|
checkout([ |
|
|
|
// checkout([ |
|
|
|
$class: 'GitSCM', |
|
|
|
// $class: 'GitSCM', |
|
|
|
branches: [[name: "*/${BRANCH}"]], |
|
|
|
// branches: [[name: "*/${BRANCH}"]], |
|
|
|
userRemoteConfigs: [[url: GIT_URL]] |
|
|
|
// userRemoteConfigs: [[url: GIT_URL]] |
|
|
|
]) |
|
|
|
// ]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sh "cd /projects" |
|
|
|
sh "pwd" |
|
|
|
sh "pwd" |
|
|
|
sh "git --version" |
|
|
|
sh "git --version" |
|
|
|
} |
|
|
|
} |
|
|
|