ceph-csi/jobs/jjb-validate.yaml
Niels de Vos 69b16771ae ci: do not automatically run jjb-validate on PRs
The jjb-validate job is not correct, it does not always return the
results of the PR.

Prevent triggering the job automatically, and only have it run when
someone leaves the '/test ci/centos/jjb-validate' comment.

Updates: #1111
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-05-28 07:36:06 +00:00

48 lines
1.4 KiB
YAML

---
- job:
name: jjb-validate
project-type: pipeline
sandbox: true
concurrent: true
properties:
- github:
url: https://github.com/ceph/ceph-csi
- build-discarder:
days-to-keep: 7
artifact-days-to-keep: 7
dsl: |
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
def GIT_BRANCH = 'ci/centos'
if (params.ghprbPullId != null) {
GIT_BRANCH = "pr/${ghprbPullId}/head"
}
node {
stage('checkout ci repository') {
checkout([$class: 'GitSCM', branches: [[name: 'FETCH_HEAD']],
userRemoteConfigs: [[url: "${GIT_REPO}",
refspec: "${GIT_BRANCH}"]]])
}
stage('validation') {
sh './deploy/jjb.sh validate'
}
}
triggers:
- github-pull-request:
status-context: ci/centos/jjb-validate
trigger-phrase: '/(re)?test ((all)|(ci/centos/jjb-validate))'
# FIXME: re-enable permit-all, disable only-trigger-phrase
# See https://github.com/ceph/ceph-csi/issues/1111
# permit-all: true
only-trigger-phrase: true
# TODO: set github-hooks to true when it is configured in GitHub
github-hooks: false
cron: 'H/5 * * * *'
white-list-target-branches:
- ci/centos
admin-list:
- nixpanic
org-list:
- ceph