2020-04-01 11:44:38 +00:00
|
|
|
---
|
|
|
|
- job:
|
|
|
|
name: jjb-validate
|
|
|
|
project-type: pipeline
|
2020-10-23 07:03:23 +00:00
|
|
|
concurrent: false
|
2020-11-01 11:31:05 +00:00
|
|
|
parameters:
|
|
|
|
- string:
|
|
|
|
name: GIT_REPO
|
|
|
|
default: http://github.com/ceph/ceph-csi
|
|
|
|
description: The git repo url
|
|
|
|
- string:
|
|
|
|
name: GIT_BRANCH
|
|
|
|
default: ci/centos
|
|
|
|
description: The git branch
|
2020-05-26 15:46:00 +00:00
|
|
|
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-09-22 08:50:06 +00:00
|
|
|
if (params.ghprbPullId != null) {
|
2020-10-26 07:02:26 +00:00
|
|
|
GIT_BRANCH = "pull/${ghprbPullId}/merge"
|
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-11-01 11:31:05 +00:00
|
|
|
sh "./deploy/jjb.sh --cmd validate \
|
|
|
|
--GIT_REF ${GIT_BRANCH} --GIT_REPO ${GIT_REPO}"
|
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
|
2020-11-01 11:31:05 +00:00
|
|
|
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
|