-
Notifications
You must be signed in to change notification settings - Fork 40
/
bc.yml
57 lines (57 loc) · 1.33 KB
/
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
49
50
51
52
53
54
55
56
57
apiVersion: v1
kind: Template
metadata:
name: jenkins-agent-golang
parameters:
- name: ODS_BITBUCKET_PROJECT
description: Bitbucket project name.
value: opendevstack
- name: REPO_BASE
required: true
- name: ODS_IMAGE_TAG
required: true
value: latest
- name: ODS_GIT_REF
required: true
- name: JENKINS_AGENT_DOCKERFILE_PATH
value: Dockerfile.rhel7
description: Dockerfile variant to use
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
name: jenkins-agent-golang
labels:
app: jenkins-agent-golang
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: jenkins-agent-golang:${ODS_IMAGE_TAG}
postCommit: {}
resources:
limits:
cpu: "1"
memory: "2Gi"
requests:
cpu: "200m"
memory: "1Gi"
runPolicy: Serial
source:
contextDir: common/jenkins-agents/golang/docker
git:
ref: ${ODS_GIT_REF}
uri: ${REPO_BASE}/${ODS_BITBUCKET_PROJECT}/ods-quickstarters.git
sourceSecret:
name: cd-user-token
type: Git
strategy:
dockerStrategy:
dockerfilePath: ${JENKINS_AGENT_DOCKERFILE_PATH}
from:
kind: ImageStreamTag
name: jenkins-agent-base:${ODS_IMAGE_TAG}
type: Docker
successfulBuildsHistoryLimit: 5