ceph-csi/jobs/jjb-deploy.yaml
liranmauda c281511a11 ci: Add the ability to run JJB from private branch/fork
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>
2020-11-03 07:26:43 +00:00

40 lines
989 B
YAML

---
- job:
name: jjb-deploy
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: |
node {
stage('checkout ci repository') {
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
}
stage('deployment') {
sh "./deploy/jjb.sh --cmd deploy \
--GIT_REF ${GIT_BRANCH} --GIT_REPO ${GIT_REPO}"
}
}
scm:
- git:
name: origin
url: $GIT_REPO
branches:
- $GIT_BRANCH
triggers:
- pollscm:
cron: "H/5 * * * *"