-
Notifications
You must be signed in to change notification settings - Fork 11
/
jenkins-x.yml
102 lines (101 loc) · 3.88 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
buildPack: none
pipelineConfig:
pipelines:
release:
pipeline:
agent:
image: gcr.io/jenkinsxio/builder-go
environment:
- name: DEPLOY_NAMESPACE
value: jx
stages:
- name: release
steps:
- name: validate-git
dir: /workspace/source/env
command: jx
args: ['step','git','validate']
- name: verify-preinstall
dir: /workspace/source/env
command: jx
args: ['step','verify','preinstall']
- name: jx-crds
command: jx
args: ['upgrade','crd']
- name: kube-system
dir: /workspace/source/systems/jxing
command: jx
args: ['step','helm','apply', '--boot', '--remote', '--no-vault', '--name', 'jxing']
env:
- name: DEPLOY_NAMESPACE
value: kube-system
- name: helm-cluster-values
dir: /workspace/source/env
command: jx
args: ['step','create','install', 'values', '-b']
- name: install-vault
dir: /workspace/source/systems/vault
command: jx
args: ['step', 'boot','vault']
- name: cert-manager-crds
dir: /workspace/source
command: kubectl
args: ['apply', '--wait', '--validate=true', '-f', 'https://raw.githubusercontent.com/jetstack/cert-manager/release-0.8/deploy/manifests/00-crds.yaml']
env:
- name: DEPLOY_NAMESPACE
value: cert-manager
- name: cert-manager
dir: /workspace/source/systems/cm
command: jx
args: ['step','helm','apply', '--boot', '--remote', '--no-vault', '--name', 'jx']
env:
- name: DEPLOY_NAMESPACE
value: cert-manager
- name: helm-populate-params
dir: /workspace/source/env
command: jx
args: ['step', 'create', 'values', '--name', 'parameters']
- name: helm-build
dir: /workspace/source/env
command: jx
args: ['step','helm','apply', '--boot', '--remote', '--name', 'jenkins-x', '--provider-values-dir', '../kubeProviders']
- name: verify-env
dir: /workspace/source
command: jx
args: ['step','verify','env']
- name: log-repos
dir: /workspace/source/repositories
command: echo
args:
- ""
- ""
- "now populating projects...."
- ""
- ""
- name: apply-repositories
dir: /workspace/source/repositories
command: jx
args: ['step','helm','apply', '--boot', '--name', 'repos']
- name: apply-pipeline-schedulers
dir: /workspace/source/prowConfig
command: jx
args: ['step','scheduler','config', 'apply', '--direct=true']
- name: update-webhooks
dir: /workspace/source/repositories
command: jx
args: ['update','webhooks','--verbose', '--warn-on-fail']
- name: verify-install
dir: /workspace/source/env
command: jx
args: ['step','verify','install', '--pod-wait-time', '30m']
pullRequest:
pipeline:
agent:
image: gcr.io/jenkinsxio/builder-go
stages:
- name: release
steps:
- name: helm-build
dir: /workspace/source/env
command: make
args: ['build']