mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
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:
parent
6d906b415f
commit
9e2a7e0c8d
18
jjb-deploy.yaml
Normal file
18
jjb-deploy.yaml
Normal 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
22
jjb-validate.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user