mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
ci: run jjb-validate batch job against a PR
The batch job templates for OpenShift use a GIT_REF variable that is used by the jobs to checkout the repository. This defaults to "ci/centos", but it never is adjusted when jjb-validate runs against a PR. With the new GIT_REF environment variable in the jjb.sh script, the variable can now be used to checkout a PR from gitHub and run the validation against that. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
refspec: "${GIT_BRANCH}"]]])
|
||||
}
|
||||
stage('validation') {
|
||||
sh './deploy/jjb.sh validate'
|
||||
sh "GIT_REF=${GIT_BRANCH} ./deploy/jjb.sh validate"
|
||||
}
|
||||
}
|
||||
triggers:
|
||||
|
Reference in New Issue
Block a user