add jjb-<cmd> jobs for validating/deploying Jenkins jobs

Thse jobs run the deploy/jjb.sh script on a Jenkins Slave that is
configured with an environment for working with the `oc` command.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-04-01 13:44:38 +02:00
parent 6d906b415f
commit 9e2a7e0c8d
2 changed files with 40 additions and 0 deletions

18
jjb-deploy.yaml Normal file
View File

@ -0,0 +1,18 @@
---
- job:
name: jjb-deploy
project-type: pipeline
sandbox: true
dsl: |
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
def GIT_BRANCH = 'ci/centos'
node {
stage('checkout ci repository') {
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
}
stage('validation') {
sh './deploy/jjb.sh deploy'
}
}
triggers:
- github

22
jjb-validate.yaml Normal file
View File

@ -0,0 +1,22 @@
---
- job:
name: jjb-validate
project-type: pipeline
sandbox: true
dsl: |
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
def GIT_BRANCH = 'ci/centos'
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:
admin-list:
- nixpanic
org-list:
- ceph