forked from ChrisHoban/ssg-openshift-meta-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotnet-slave.yaml
More file actions
112 lines (112 loc) · 3.57 KB
/
Copy pathdotnet-slave.yaml
File metadata and controls
112 lines (112 loc) · 3.57 KB
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
apiVersion: v1
kind: Template
labels:
template: dotnet-core
message: |-
A Jenkins server must be instantiated in this project to manage
the Pipeline BuildConfig created by this template. You will be able to log in to
it using your OpenShift user credentials.
metadata:
annotations:
openshift.io/display-name: sonarqube dotnet template
description: |-
This is a template for Sonarqube dotnet.
iconClass: icon-jenkins
tags: instant-app,jenkins
name: dotnet-core-template
parameters:
- description: The OpenShift Namespace prefix where the ImageStreams reside.
displayName: Namespace Prefix (Prefix for each namespace ie prefix-tools, prefix-dev etc)
name: namespacePrefix
required: true
value:
- description: Dotnet version
displayName: Dotnet version
name: dotnetVersion
required: true
value: "3.1"
objects:
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
app: jenkins-slave-dotnet
name: jenkins-slave-dotnet
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: "jenkins-slave-dotnet:latest"
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: ${dotnetVersion}
git:
ref: master
uri: "https://github.com/redhat-developer/dotnet-jenkins-slave.git"
type: Git
strategy:
dockerStrategy:
dockerfilePath: Dockerfile
# env:
# - name: GIT_SSL_NO_VERIFY
# value: "true"
# - name: DOT_NET_VERSION
# value: ${dotnetVersion}
from:
kind: DockerImage
name: "docker.io/openshift/jenkins-slave-base-centos7:latest"
type: Docker
successfulBuildsHistoryLimit: 5
triggers: []
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
app: jenkins-slave-dotnet
name: jenkins-slave-dotnet
spec:
lookupPolicy:
local: false
- apiVersion: v1
data:
dotnet: |-
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
<inheritFrom></inheritFrom>
<name>dotnet</name>
<instanceCap>2147483647</instanceCap>
<idleMinutes>0</idleMinutes>
<label>dotnet</label>
<serviceAccount>jenkins</serviceAccount>
<nodeSelector></nodeSelector>
<volumes/>
<containers>
<org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
<name>jnlp</name>
<image>docker-registry.default.svc:5000/${namespacePrefix}-tools/jenkins-slave-dotnet</image>
<privileged>false</privileged>
<alwaysPullImage>false</alwaysPullImage>
<workingDir>/tmp</workingDir>
<command></command>
<args>${computer.jnlpmac} ${computer.name}</args>
<ttyEnabled>false</ttyEnabled>
<resourceRequestCpu>1</resourceRequestCpu>
<resourceRequestMemory>1Gi</resourceRequestMemory>
<resourceLimitCpu>2</resourceLimitCpu>
<resourceLimitMemory>4Gi</resourceLimitMemory>
<envVars/>
</org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
</containers>
<envVars/>
<annotations/>
<imagePullSecrets/>
<nodeProperties/>
</org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
kind: ConfigMap
metadata:
labels:
role: jenkins-slave
name: jenkins-agent-dotnet