mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-18 10:49:30 +00:00
ci: checkout the PR when running jjb-validate
Using the 'git' function in groovy does not allow checking out a non-branch, so use the 'checkout' function instead. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
8f4a556dcc
commit
d2905081b3
@ -20,7 +20,9 @@
|
|||||||
|
|
||||||
node {
|
node {
|
||||||
stage('checkout ci repository') {
|
stage('checkout ci repository') {
|
||||||
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
|
checkout([$class: 'GitSCM', branches: [[name: 'FETCH_HEAD']],
|
||||||
|
userRemoteConfigs: [[url: "${GIT_REPO}",
|
||||||
|
refspec: "${GIT_BRANCH}"]]])
|
||||||
}
|
}
|
||||||
stage('validation') {
|
stage('validation') {
|
||||||
sh './deploy/jjb.sh validate'
|
sh './deploy/jjb.sh validate'
|
||||||
|
Loading…
Reference in New Issue
Block a user