-
Notifications
You must be signed in to change notification settings - Fork 0
/
openshift-test-slave.yaml
118 lines (118 loc) · 3.15 KB
/
openshift-test-slave.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
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: openshift-test-pipeline-slave
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
creationTimestamp: null
name: jenkins-slave-base-rhel7
spec:
tags:
- from:
kind: DockerImage
name: registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7
importPolicy:
scheduled: true
name: latest
referencePolicy:
type: Source
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
creationTimestamp: null
labels:
role: jenkins-slave
name: ${NAME}
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
creationTimestamp: null
labels:
build: ${NAME}
name: ${NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: ${CONTEXT_DIR}
git:
ref: ${SOURCE_REPOSITORY_REF}
uri: ${SOURCE_REPOSITORY_URL}
type: Git
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: jenkins-slave-base-rhel7:latest
type: Docker
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
creationTimestamp: null
labels:
build: ${NAME}-pipeline
name: ${NAME}-pipeline
spec:
nodeSelector: null
output: {}
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: ${PIPELINE_CONTEXT_DIR}
git:
ref: ${SOURCE_REPOSITORY_REF}
uri: ${SOURCE_REPOSITORY_URL}
type: Git
strategy:
jenkinsPipelineStrategy:
jenkinsfilePath: Jenkinsfile
env:
- name: DESTINATIONNAMESPACE
value: ${DESTINATIONNAMESPACE}
type: JenkinsPipeline
triggers:
- type: ImageChange
imageChange:
from:
kind: ImageStreamTag
name: jenkins-slave-base-rhel7:latest
- type: ConfigChange
parameters:
- description: The name assigned to the objects defined in this template.
displayName: Name
name: NAME
required: true
value: openshift-test-pipeline-slave
- description: The URL of the repository with your application source code.
displayName: Git Repository URL
name: SOURCE_REPOSITORY_URL
required: true
value: https://github.com/UKCloud/openshift-test-pipeline.git
- description: Set this to a branch name, tag or other ref of your repository if you
are not using the default branch.
displayName: Git Reference
name: SOURCE_REPOSITORY_REF
value: master
- description: Set this to the relative path to your project if it is not in the root
of your repository.
displayName: Context Directory
name: CONTEXT_DIR
value: docker
- description: Set this to the relative path to your project if it is not in the root
of your repository.
displayName: Pipeline Context Directory
name: PIPELINE_CONTEXT_DIR
value: jenkins-pipelines
- description: This is passed via the setup_pipeline command to set the namespace for the openshift-test-pipeline slave build
displayName: Destination Namespace
name: DESTINATIONNAMESPACE
value: test-pipeline