-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopenshift-jenkins-master-bc.yml
48 lines (48 loc) · 1.49 KB
/
openshift-jenkins-master-bc.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
apiVersion: template.openshift.io/v1
kind: Template
labels:
template: microcks-jenkins-master
objects:
- apiVersion: v1
kind: ImageStream
metadata:
labels:
build: microcks-jenkins-master-bc
name: microcks-jenkins-master
- apiVersion: v1
kind: BuildConfig
metadata:
annotations:
description: BuildConfig for Jenkins master embedding Microcks plugin (see http://microcks.github.io)
labels: {}
name: microcks-jenkins-master-bc
spec:
output:
to:
kind: ImageStreamTag
name: microcks-jenkins-master:latest
runPolicy: Serial
source:
dockerfile: |-
FROM openshift/jenkins:2
ADD https://repo.maven.apache.org/maven2/io/github/microcks/microcks-jenkins-plugin/${MICROCKS_JENKINS_PLUGIN_VERSION}/microcks-jenkins-plugin-${MICROCKS_JENKINS_PLUGIN_VERSION}.hpi /opt/microcks-jenkins-plugin.hpi
USER root
RUN cp /opt/microcks-jenkins-plugin.hpi /opt/openshift/plugins/microcks-jenkins-plugin.hpi && \
chmod 555 /opt/openshift/plugins/microcks-jenkins-plugin.hpi
USER 1001
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
name: jenkins:2
namespace: openshift
triggers:
- type: ImageChange
- type: ConfigChange
parameters:
- description: The version of the Microcks Jenkins Plugin to include into Jenkins
displayName: Microcks Jenkins Plugin Version
name: MICROCKS_JENKINS_PLUGIN_VERSION
required: true
value: 0.5.0