mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 00:30:18 +00:00
8787036903
The new Blue Ocean webui is much easier to navigate than the traditional Jenkins webui. Developers that want to check failures of CI jobs will be able to find the logs much quicker as each stage/step has a clear success or failed status. Signed-off-by: Niels de Vos <ndevos@redhat.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
---
|
|
- job:
|
|
name: jjb-validate
|
|
project-type: pipeline
|
|
concurrent: false
|
|
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
|
|
properties:
|
|
- github:
|
|
url: https://github.com/ceph/ceph-csi
|
|
- build-discarder:
|
|
days-to-keep: 7
|
|
artifact-days-to-keep: 7
|
|
dsl: |
|
|
if (params.ghprbPullId != null) {
|
|
GIT_BRANCH = "pull/${ghprbPullId}/merge"
|
|
}
|
|
|
|
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 --cmd validate \
|
|
--GIT_REF ${GIT_BRANCH} --GIT_REPO ${GIT_REPO}"
|
|
}
|
|
}
|
|
triggers:
|
|
- github-pull-request:
|
|
status-url: ${RUN_DISPLAY_URL}
|
|
status-context: ci/centos/jjb-validate
|
|
trigger-phrase: "/(re)?test ((all)|(ci/centos/jjb-validate))"
|
|
permit-all: true
|
|
github-hooks: true
|
|
white-list-target-branches:
|
|
- ci/centos
|
|
org-list:
|
|
- ceph
|
|
allow-whitelist-orgs-as-admins: true
|