2020-04-01 11:44:38 +00:00
|
|
|
---
|
|
|
|
- job:
|
|
|
|
name: jjb-validate
|
|
|
|
project-type: pipeline
|
2020-05-26 15:46:00 +00:00
|
|
|
concurrent: true
|
|
|
|
properties:
|
|
|
|
- github:
|
|
|
|
url: https://github.com/ceph/ceph-csi
|
|
|
|
- build-discarder:
|
|
|
|
days-to-keep: 7
|
|
|
|
artifact-days-to-keep: 7
|
2020-04-01 11:44:38 +00:00
|
|
|
dsl: |
|
2020-05-29 08:44:37 +00:00
|
|
|
def GIT_REPO = 'https://github.com/ceph/ceph-csi'
|
2020-04-01 11:44:38 +00:00
|
|
|
def GIT_BRANCH = 'ci/centos'
|
2020-05-26 15:46:00 +00:00
|
|
|
|
2020-09-22 08:50:06 +00:00
|
|
|
if (params.ghprbPullId != null) {
|
2020-05-29 08:44:37 +00:00
|
|
|
GIT_BRANCH = "pull/${ghprbPullId}/head"
|
2020-05-26 15:46:00 +00:00
|
|
|
}
|
|
|
|
|
2020-04-01 11:44:38 +00:00
|
|
|
node {
|
|
|
|
stage('checkout ci repository') {
|
2020-05-27 14:44:12 +00:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: 'FETCH_HEAD']],
|
|
|
|
userRemoteConfigs: [[url: "${GIT_REPO}",
|
|
|
|
refspec: "${GIT_BRANCH}"]]])
|
2020-04-01 11:44:38 +00:00
|
|
|
}
|
|
|
|
stage('validation') {
|
2020-09-22 09:07:16 +00:00
|
|
|
sh "GIT_REF=${GIT_BRANCH} ./deploy/jjb.sh validate"
|
2020-04-01 11:44:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
triggers:
|
|
|
|
- github-pull-request:
|
2020-05-26 15:46:00 +00:00
|
|
|
status-context: ci/centos/jjb-validate
|
|
|
|
trigger-phrase: '/(re)?test ((all)|(ci/centos/jjb-validate))'
|
2020-05-28 16:21:37 +00:00
|
|
|
permit-all: true
|
2020-08-17 07:28:01 +00:00
|
|
|
github-hooks: true
|
2020-05-26 15:46:00 +00:00
|
|
|
white-list-target-branches:
|
|
|
|
- ci/centos
|
2020-04-01 11:44:38 +00:00
|
|
|
org-list:
|
2020-05-26 15:12:36 +00:00
|
|
|
- ceph
|
2020-08-10 11:44:02 +00:00
|
|
|
allow-whitelist-orgs-as-admins: true
|