File tree Expand file tree Collapse file tree 2 files changed +24
-21
lines changed Expand file tree Collapse file tree 2 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pipeline {
3
3
agent {
4
4
kubernetes {
5
5
yamlFile ' kubernetesPod.yaml'
6
+ workspaceVolume dynamicPVC(accessModes : ' ReadWriteOnce' , requestsSize : ' 40Gi' )
6
7
}
7
8
}
8
9
@@ -20,7 +21,7 @@ pipeline {
20
21
21
22
configFileProvider([configFile(fileId : ' maven-settings-rsb' , variable : ' MAVEN_SETTINGS_RSB' )]) {
22
23
23
- sh ' mvn -B -s $MAVEN_SETTINGS_RSB -U clean install deploy -DskipTests=true'
24
+ sh ' mvn -B -s $MAVEN_SETTINGS_RSB -Dmaven.repo.local=/home/jenkins/agent/m2 -U clean install deploy -DskipTests=true'
24
25
25
26
}
26
27
}
Original file line number Diff line number Diff line change @@ -5,24 +5,26 @@ metadata:
5
5
labels :
6
6
ci : containerproxy-build
7
7
spec :
8
- volumes :
9
- - name : maven-repo
10
- emptyDir : {}
8
+ securityContext :
9
+ fsGroup : 65534
11
10
containers :
12
- - name : containerproxy-build
13
- image : 196229073436.dkr.ecr.eu-west-1.amazonaws.com/openanalytics/containerproxy-build
14
- securityContext :
15
- privileged : true
16
- command : ["sh"]
17
- args : ["/usr/src/app/docker-entrypoint.sh"]
18
- tty : true
19
- volumeMounts :
20
- - mountPath : ~/.m2
21
- name : maven-repo
22
- resources :
23
- requests :
24
- memory : " 2Gi"
25
- cpu : " 1.0"
26
- limits :
27
- memory : " 4Gi"
28
- cpu : " 1.5"
11
+ - name : containerproxy-build
12
+ image : 196229073436.dkr.ecr.eu-west-1.amazonaws.com/openanalytics/containerproxy-build
13
+ securityContext :
14
+ privileged : true
15
+ command : [ "sh" ]
16
+ args : [ "/usr/src/app/docker-entrypoint.sh" ]
17
+ tty : true
18
+ volumeMounts :
19
+ - name : workspace-volume
20
+ subPath : docker
21
+ mountPath : /var/lib/docker
22
+ resources :
23
+ requests :
24
+ ephemeral-storage : " 20Gi"
25
+ memory : " 2Gi"
26
+ cpu : " 1.0"
27
+ limits :
28
+ memory : " 4Gi"
29
+ cpu : " 1.5"
30
+ ephemeral-storage : " 20Gi"
You can’t perform that action at this time.
0 commit comments