mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
9273955d92
Jenkins Jobs Builder does not like the inline `dsl:` scripts anymore, so replace them by Groovy files in the main directory, similar to other jobs. Signed-off-by: Niels de Vos <ndevos@ibm.com>
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}"
|
|
}
|
|
}
|