-
Notifications
You must be signed in to change notification settings - Fork 445
/
example-plugin-development-template.yaml
130 lines (130 loc) · 2.86 KB
/
example-plugin-development-template.yaml
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
120
121
122
123
124
125
126
127
128
129
130
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: jenkins-sync-plugin
parameters:
- name: SOURCE_URL
required: true
value: https://github.com/openshift/jenkins-sync-plugin.git
- name: SOURCE_REF
required: true
value: master
objects:
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: jenkins-sync-plugin
name: jenkins-sync-plugin
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: jenkins-sync-plugin:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
git:
ref: "${SOURCE_REF}"
uri: "${SOURCE_URL}"
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: java:latest
type: Source
successfulBuildsHistoryLimit: 5
triggers:
- github:
secret: HRDWcgVd1CEk0Ei9sHYB
type: GitHub
- generic:
secret: NSv2E8bQ5ghBFJPwt4TV
type: Generic
- type: ConfigChange
- imageChange: {}
type: ImageChange
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: jenkins
name: jenkins
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: jenkins:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
dockerfile: |
FROM jenkins:latest
COPY binary/openshift-sync.hpi /opt/openshift/plugins/openshift-sync.jpi
images:
- from:
kind: ImageStreamTag
name: jenkins-sync-plugin:latest
paths:
- destinationDir: binary/
sourcePath: /tmp/src/target/openshift-sync.hpi
type: Dockerfile
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: jenkins:latest
namespace: openshift
type: Docker
successfulBuildsHistoryLimit: 5
triggers:
- github:
secret: dFtZzfIKt7ZaGiEYden5
type: GitHub
- generic:
secret: 9DKSrxXvPUeEnqKu-n36
type: Generic
- type: ConfigChange
- imageChange: {}
type: ImageChange
status:
lastVersion: 0
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: java
spec:
lookupPolicy:
local: false
tags:
- from:
kind: DockerImage
name: registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:latest
name: latest
referencePolicy:
type: Source
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: jenkins-sync-plugin
name: jenkins-sync-plugin
spec:
lookupPolicy:
local: false
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: jenkins
name: jenkins
spec:
lookupPolicy:
local: false