ci: add CentOS CI job for jjb-validation

This job checks if the Jenkins Job Builder .yaml files are valid.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-05-26 17:46:00 +02:00
parent 67a7b4e8e2
commit d66b31edf3

View File

@ -3,9 +3,21 @@
name: jjb-validate name: jjb-validate
project-type: pipeline project-type: pipeline
sandbox: true sandbox: true
concurrent: true
properties:
- github:
url: https://github.com/ceph/ceph-csi
- build-discarder:
days-to-keep: 7
artifact-days-to-keep: 7
dsl: | dsl: |
def GIT_REPO = 'http://github.com/ceph/ceph-csi' def GIT_REPO = 'http://github.com/ceph/ceph-csi'
def GIT_BRANCH = 'ci/centos' def GIT_BRANCH = 'ci/centos'
if (params.ghprbPullId != null) {
GIT_BRANCH = "pr/${ghprbPullId}/head"
}
node { node {
stage('checkout ci repository') { stage('checkout ci repository') {
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
@ -16,6 +28,14 @@
} }
triggers: triggers:
- github-pull-request: - github-pull-request:
status-context: ci/centos/jjb-validate
trigger-phrase: '/(re)?test ((all)|(ci/centos/jjb-validate))'
permit-all: true
# TODO: set github-hooks to true when it is configured in GitHub
github-hooks: false
cron: 'H/5 * * * *'
white-list-target-branches:
- ci/centos
admin-list: admin-list:
- nixpanic - nixpanic
org-list: org-list: