mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 08:20:23 +00:00
c281511a11
Add the ability to run JJB from private branch/fork jjb-deploy.yaml: - Add GIT_REPO parameter (not required) with default value jjb.sh: - Changing PS4 for more indicative debug prompt - Adding flags to get the repo and branch jjb-deploy.yaml: - Calling the jjb.sh with the correct flags Signed-off-by: liranmauda <liran.mauda@gmail.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 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-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
|