2020-04-01 11:44:38 +00:00
|
|
|
---
|
|
|
|
- job:
|
|
|
|
name: jjb-validate
|
|
|
|
project-type: pipeline
|
|
|
|
sandbox: true
|
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-08-03 14:32:37 +00:00
|
|
|
parameters:
|
|
|
|
- string:
|
|
|
|
name: ghprbPullId
|
|
|
|
description: GitHub Pull-Request ID for testing
|
|
|
|
default: 0
|
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-08-03 14:32:37 +00:00
|
|
|
if (params.ghprbPullId != null && "${ghprbPullId}" != "0") {
|
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') {
|
|
|
|
sh './deploy/jjb.sh validate'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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-05-26 15:46:00 +00:00
|
|
|
# TODO: set github-hooks to true when it is configured in GitHub
|
|
|
|
github-hooks: false
|
|
|
|
cron: 'H/5 * * * *'
|
|
|
|
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
|