2020-04-01 11:35:10 +00:00
|
|
|
---
|
2020-05-28 15:22:48 +00:00
|
|
|
kind: Template
|
|
|
|
apiVersion: v1
|
2020-04-01 11:35:10 +00:00
|
|
|
metadata:
|
2020-05-28 15:22:48 +00:00
|
|
|
name: my-template
|
|
|
|
objects:
|
|
|
|
- apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: jjb
|
|
|
|
jjb/session: "${SESSION}"
|
|
|
|
name: jjb-deploy
|
2020-04-01 11:35:10 +00:00
|
|
|
spec:
|
2020-05-28 15:22:48 +00:00
|
|
|
ttlSecondsAfterFinished: 0
|
|
|
|
backoffLimit: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: jjb-deploy
|
|
|
|
jjb/session: "${SESSION}"
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: jjb
|
|
|
|
image: 172.30.254.79:5000/ceph-csi/jjb:latest
|
|
|
|
env:
|
|
|
|
- name: GIT_REPO
|
|
|
|
value: https://github.com/ceph/ceph-csi
|
|
|
|
- name: GIT_REF
|
|
|
|
value: ci/centos
|
|
|
|
- name: MAKE_TARGET
|
|
|
|
value: deploy
|
|
|
|
volumeMounts:
|
|
|
|
- name: etc-jj
|
|
|
|
mountPath: /etc/jenkins_jobs
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
2020-05-26 15:03:52 +00:00
|
|
|
- name: etc-jj
|
2020-05-28 15:22:48 +00:00
|
|
|
configMap:
|
|
|
|
name: jenkins-jobs
|
|
|
|
restartPolicy: Never
|
|
|
|
parameters:
|
|
|
|
- name: SESSION
|
|
|
|
description: unique ID for the session to track the pod for the job
|
|
|
|
required: true
|