This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
jenkins-x.yml
120 lines (119 loc) · 3.82 KB
/
jenkins-x.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
buildPack: none
pipelineConfig:
pipelines:
release:
pipeline:
agent:
image: seldonio/core-builder:0.4
stages:
- name: release-tests
steps:
- name: release-unit-tests
command: make
args:
- install_dev
- test
# - name: release-end-to-end-tests
# command: bash
# args:
# - integration/kind_test_all.sh
- name: release-promote
agent:
image: gcr.io/jenkinsxio/builder-go:2.0.916-264
- sh: "echo $(jx-release-version) > VERSION"
name: next-version
steps:
- sh: "jx step tag --version $(cat VERSION)"
name: tag-version
- name: release-changelog
sh: "cd charts/seldon-model-server && jx step changelog --batch-mode --version v$(cat ../../VERSION)"
- name: release-publish-chart
sh: "cd charts/seldon-model-server && jx step helm release --dir ."
- name: release-promote-staging
sh: "cd charts/seldon-model-server && jx promote -b --all-auto --timeout 1h --version $(cat ../../VERSION)"
options:
containerOptions:
volumeMounts:
- mountPath: /lib/modules
name: modules
readOnly: true
- mountPath: /sys/fs/cgroup
name: cgroup
- name: dind-storage
mountPath: /var/lib/docker
- mountPath: /builder/home/.docker
name: jenkins-docker-config-volume
securityContext:
privileged: true
volumes:
- name: modules
hostPath:
path: /lib/modules
type: Directory
- name: cgroup
hostPath:
path: /sys/fs/cgroup
type: Directory
- name: dind-storage
emptyDir: {}
- name: jenkins-docker-config-volume
secret:
items:
- key: config.json
path: config.json
secretName: jenkins-docker-cfg
pullRequest:
pipeline:
agent:
image: seldonio/core-builder:0.4
stages:
- name: pr-tests
steps:
- name: pr-unit-tests
command: make
args:
- install_dev
- test
- name: pr-end-to-end-tests
command: bash
args:
- integration/kind_test_all.sh
- name: pr-preview
agent:
image: gcr.io/jenkinsxio/builder-go:2.0.916-264
steps:
- name: pr-build-preview
sh: cd charts/preview && make preview
- name: pr-deploy-preview
sh: cd charts/preview && jx preview --app $APP_NAME --dir .
options:
containerOptions:
volumeMounts:
- mountPath: /lib/modules
name: modules
readOnly: true
- mountPath: /sys/fs/cgroup
name: cgroup
- name: dind-storage
mountPath: /var/lib/docker
- mountPath: /builder/home/.docker
name: jenkins-docker-config-volume
securityContext:
privileged: true
volumes:
- name: modules
hostPath:
path: /lib/modules
type: Directory
- name: cgroup
hostPath:
path: /sys/fs/cgroup
type: Directory
- name: dind-storage
emptyDir: {}
- name: jenkins-docker-config-volume
secret:
items:
- key: config.json
path: config.json
secretName: jenkins-docker-cfg