forked from lbroudoux/openshift-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-template-jenkinsfile.yaml
49 lines (49 loc) · 1.18 KB
/
app-template-jenkinsfile.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
apiVersion: v1
kind: Template
labels:
template: openshift-tasks-jenkinsfile
metadata:
name: openshift-tasks-jenkinsfile
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
annotations:
pipeline.alpha.openshift.io/uses: '[{"name": "jkf-tasks", "namespace": "", "kind": "DeploymentConfig"}]'
labels:
application: ${APPLICATION_NAME}-jenkinsfile
name: ${APPLICATION_NAME}-jenkinsfile
spec:
source:
git:
ref: ${SOURCE_REF}
uri: ${SOURCE_URL}
type: Git
strategy:
jenkinsPipelineStrategy:
jenkinsfilePath: Jenkinsfile
type: JenkinsPipeline
type: Generic
triggers:
- github:
secret: kJZLvfQr3hZg
type: GitHub
- generic:
secret: kJZLvfQr3hZg
type: Generic
parameters:
- description: The name for the application.
name: APPLICATION_NAME
required: true
value: jkf-tasks
- description: The name of Dev project
name: DEV_PROJECT
required: true
value: ocp-tasks
- description: Git source URI for application
name: SOURCE_URL
required: true
value: https://github.com/lbroudoux/openshift-tasks
- description: Git branch/tag reference
name: SOURCE_REF
value: master