-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathorca-local.yml
52 lines (52 loc) · 1.74 KB
/
orca-local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
job:
preconfigured:
kubernetes:
- enable: true
label: Maven build
description: Build github repo using Maven
type: mavenbuild
cloudProvider: kubernetes
account: default
application: summit2020
waitForCompletion: true
parameters:
- label: gitrepo
name: gitrepo
description: the gitrepo to build
mapping: 'manifest.spec.template.spec.containers[0].env[0].value'
defaultValue: spinnakersummit-2020
manifest:
apiVersion: batch/v1
kind: Job
metadata:
labels:
spinnakerlabel: maven-build
name: maven-build
namespace: default
spec:
backoffLimit: 0
template:
spec:
containers:
- args:
- >-
cd /workspace && rm -fr $GITREPO && git clone
https://github.com/OpsMx/$GITREPO.git && cd $GITREPO && mvn
clean install && echo SPINNAKER_PROPERTY_COMMIT_ID=$(git rev-parse
--short HEAD)
command:
- bash
- '-c'
env:
- name: GITREPO
value:
image: 'maven:3-openjdk-11'
name: gitmavenstage
volumeMounts:
- mountPath: /workspace
name: workspace
restartPolicy: Never
volumes:
- name: workspace
persistentVolumeClaim:
claimName: nfs-share