-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
62 lines (62 loc) · 2.04 KB
/
values.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
controller:
adminUsername: admin # username for jenkins
adminPassword: admin # password for jenkins
additionalPlugins:
- kubernetes:3734.v562b_b_a_627ea_c
- git:4.13.0
- configuration-as-code:1429.v09b_044a_c93de
- job-dsl:1.77
JCasC:
defaultConfig: true
configScripts:
welcome-message: |
jenkins:
systemMessage: Jenkins-Helm!
job-config: |
jobs:
- script: >
folder('jcasc')
- script: >
pipelineJob('jcasc/default-agent') {
definition {
cps {
script("""\
pipeline {
agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
metadata:
labels:
purpose: k8s-pod-as-a-jenkins-agent
spec:
containers:
- name: busybox
image: busybox
command:
- cat
tty: true
resources:
requests:
memory: "256mi"
cpu: "100m"
'''
}
}
stages {
stage('run busybox') {
steps {
container('busybox') {
sh '/bin/busybox'
}
}
}
}
}
""".stripIndent())
sandbox()
}
}
}
serviceType: NodePort