Alanny Lopez | 634ce36 | 2017-06-23 12:57:05 -0500 | [diff] [blame^] | 1 | apiVersion: batch/v1 |
2 | kind: Job | ||||
3 | metadata: | ||||
4 | name: qemubuild${BUILD_ID} | ||||
5 | namespace: ${namespace} | ||||
6 | labels: | ||||
7 | app: qemu | ||||
8 | stage: build | ||||
9 | spec: | ||||
10 | template: | ||||
11 | metadata: | ||||
12 | name: ${podname} | ||||
13 | spec: | ||||
14 | nodeSelector: | ||||
15 | worker: \"true\" | ||||
16 | arch: ${ARCH} | ||||
17 | volumes: | ||||
18 | - name: home | ||||
19 | persistentVolumeClaim: | ||||
20 | claimName: ${hclaim} | ||||
21 | - name: qemudir | ||||
22 | persistentVolumeClaim: | ||||
23 | claimName: ${qclaim} | ||||
24 | restartPolicy: Never | ||||
25 | hostNetwork: True | ||||
26 | containers: | ||||
27 | - image: ${imgname} | ||||
28 | name: builder | ||||
29 | command: [\"${WORKSPACE}/build.sh\"] | ||||
30 | workingDir: ${HOME} | ||||
31 | env: | ||||
32 | - name: WORKSPACE | ||||
33 | value: ${WORKSPACE} | ||||
34 | - name: qemudir | ||||
35 | value: ${qemudir} | ||||
36 | volumeMounts: | ||||
37 | - name: home | ||||
38 | mountPath: ${HOME} | ||||
39 | - name: qemudir | ||||
40 | mountPath: ${qemudir} | ||||
41 | imagePullSecrets: | ||||
42 | - name: ${imgplsec} |