-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathpipeline.yaml
More file actions
40 lines (40 loc) · 886 Bytes
/
pipeline.yaml
File metadata and controls
40 lines (40 loc) · 886 Bytes
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
apiVersion: v1
kind: Template
labels:
template: birthday-paradox-pipeline
metadata:
name: birthday-paradox-pipeline
objects:
- kind: BuildConfig
apiVersion: v1
metadata:
labels:
app: ${APPLICATION_NAME}-pipeline
name: ${APPLICATION_NAME}-pipeline
spec:
source:
type: Git
git:
uri: ${REPOSITORY_URI}
ref: ${SOURCE_REF}
contextDir: ${APPLICATION_CONTEXT_DIR}
sourceSecret:
name: ${SOURCE_SECRET}
strategy:
type: JenkinsPipeline
jenkinsPipelineStrategy:
jenkinsfilePath: ${PIPELINE_SCRIPT}
## TODO: Add github webhook trigger
parameters:
- name: APPLICATION_NAME
required: true
- name: REPOSITORY_URI
required: true
- name: SOURCE_REF
required: true
- name: APPLICATION_CONTEXT_DIR
value: "."
- name: PIPELINE_SCRIPT
value: Jenkinsfile
- name: SOURCE_SECRET
required: true