mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 16:20:28 +00:00
d66b31edf3
This job checks if the Jenkins Job Builder .yaml files are valid. Signed-off-by: Niels de Vos <ndevos@redhat.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
---
|
|
- job:
|
|
name: jjb-validate
|
|
project-type: pipeline
|
|
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: |
|
|
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
|
|
def GIT_BRANCH = 'ci/centos'
|
|
|
|
if (params.ghprbPullId != null) {
|
|
GIT_BRANCH = "pr/${ghprbPullId}/head"
|
|
}
|
|
|
|
node {
|
|
stage('checkout ci repository') {
|
|
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
|
|
}
|
|
stage('validation') {
|
|
sh './deploy/jjb.sh validate'
|
|
}
|
|
}
|
|
triggers:
|
|
- 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:
|
|
- nixpanic
|
|
org-list:
|
|
- ceph
|