File tree 3 files changed +44
-52
lines changed
3 files changed +44
-52
lines changed Original file line number Diff line number Diff line change
1
+ AGENT_MAVEN = '''
2
+ apiVersion: v1
3
+ kind: Pod
4
+ spec:
5
+ containers:
6
+ - name: maven
7
+ image: maven:3.8.6-openjdk-8-slim
8
+ env:
9
+ - name: MAVEN_OPTS
10
+ value: "-Xmx8000m -Xms8000m"
11
+ resources:
12
+ requests:
13
+ memory: "16Gi"
14
+ cpu: "4000m"
15
+ limits:
16
+ memory: "16Gi"
17
+ cpu: "4000m"
18
+ tty: true
19
+ command:
20
+ - cat
21
+ '''
22
+
23
+ AGENT_DIND = '''
24
+ apiVersion: v1
25
+ kind: Pod
26
+ spec:
27
+ containers:
28
+ - name: dind
29
+ image: docker:20.10.16-dind-alpine3.15
30
+ securityContext:
31
+ privileged: true
32
+ tty: true
33
+ resources:
34
+ requests:
35
+ memory: "29Gi"
36
+ cpu: "7500m"
37
+ limits:
38
+ memory: "29Gi"
39
+ cpu: "7500m"
40
+ '''
41
+
1
42
pipeline {
2
43
3
44
agent none
4
45
5
46
environment {
6
- AWS_CREDENTIAL_ID = ' aws-jenkins '
47
+ AWS_CREDENTIAL_ID = ' oss-presto-aws '
7
48
AWS_DEFAULT_REGION = ' us-east-1'
8
49
AWS_ECR = ' public.ecr.aws/oss-presto'
9
50
AWS_S3_PREFIX = ' s3://oss-prestodb/presto'
@@ -33,7 +74,7 @@ pipeline {
33
74
agent {
34
75
kubernetes {
35
76
defaultContainer ' maven'
36
- yamlFile ' jenkins/agent-maven. yaml'
77
+ yaml AGENT_MAVEN
37
78
}
38
79
}
39
80
@@ -132,7 +173,7 @@ pipeline {
132
173
agent {
133
174
kubernetes {
134
175
defaultContainer ' dind'
135
- yamlFile ' jenkins/agent-dind. yaml'
176
+ yaml AGENT_DIND
136
177
}
137
178
}
138
179
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments