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>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
---
|
|
kind: Template
|
|
apiVersion: v1
|
|
metadata:
|
|
name: my-template
|
|
objects:
|
|
- apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
labels:
|
|
app: jjb
|
|
jjb/session: "${SESSION}"
|
|
name: jjb-deploy
|
|
spec:
|
|
ttlSecondsAfterFinished: 0
|
|
backoffLimit: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jjb-deploy
|
|
jjb/session: "${SESSION}"
|
|
spec:
|
|
containers:
|
|
- name: jjb
|
|
image: image-registry.openshift-image-registry.svc:5000/ceph-csi/jjb:latest
|
|
env:
|
|
- name: GIT_REPO
|
|
value: "${GIT_REPO}"
|
|
- name: GIT_REF
|
|
value: "${GIT_REF}"
|
|
- name: MAKE_TARGET
|
|
value: deploy
|
|
volumeMounts:
|
|
- name: etc-jj
|
|
mountPath: /etc/jenkins_jobs
|
|
readOnly: true
|
|
volumes:
|
|
- name: etc-jj
|
|
configMap:
|
|
name: jenkins-jobs
|
|
restartPolicy: Never
|
|
parameters:
|
|
- name: SESSION
|
|
description: unique ID for the session to track the pod for the job
|
|
required: true
|
|
- name: GIT_REF
|
|
description: the git branch or other ref to checkout and deploy
|
|
value: ci/centos
|
|
required: false
|
|
- name: GIT_REPO
|
|
description: the git repo or other fork to checkout and deploy
|
|
value: https://github.com/ceph/ceph-csi
|
|
required: false
|