mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
15 lines
396 B
Groovy
15 lines
396 B
Groovy
|
if (params.ghprbPullId != null) {
|
||
|
GIT_BRANCH = "pull/${ghprbPullId}/merge"
|
||
|
}
|
||
|
|
||
|
node {
|
||
|
stage('checkout ci repository') {
|
||
|
checkout([$class: 'GitSCM', branches: [[name: 'FETCH_HEAD']],
|
||
|
userRemoteConfigs: [[url: "${GIT_REPO}",
|
||
|
refspec: "${GIT_BRANCH}"]]])
|
||
|
}
|
||
|
stage('validation') {
|
||
|
sh "./deploy/jjb.sh --cmd validate --GIT_REF ${GIT_BRANCH} --GIT_REPO ${GIT_REPO}"
|
||
|
}
|
||
|
}
|