|
|
@ -37,11 +37,14 @@ pipeline { |
|
|
|
- mountPath: "/etc/localtime" |
|
|
|
- mountPath: "/etc/localtime" |
|
|
|
name: "volume-2" |
|
|
|
name: "volume-2" |
|
|
|
readOnly: false |
|
|
|
readOnly: false |
|
|
|
|
|
|
|
- mountPath: "/home/jenkins/agent" # Workspace directory |
|
|
|
|
|
|
|
name: "workspace-volume" |
|
|
|
|
|
|
|
readOnly: false |
|
|
|
- name: maven |
|
|
|
- name: maven |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/maven:3.6.3-jdk-11 |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/maven:3.6.3-jdk-11 |
|
|
|
command: ['cat'] |
|
|
|
command: ['cat'] |
|
|
|
tty: true |
|
|
|
tty: true |
|
|
|
volumeMount: |
|
|
|
volumeMounts: |
|
|
|
- mountPath: "/root/.m2" |
|
|
|
- mountPath: "/root/.m2" |
|
|
|
name: "maven-data" |
|
|
|
name: "maven-data" |
|
|
|
readOnly: false |
|
|
|
readOnly: false |
|
|
@ -92,6 +95,10 @@ pipeline { |
|
|
|
- name: maven-data |
|
|
|
- name: maven-data |
|
|
|
hostPath: |
|
|
|
hostPath: |
|
|
|
path: "/mnt/nfs-data/m2" |
|
|
|
path: "/mnt/nfs-data/m2" |
|
|
|
|
|
|
|
- name: workspace-volume |
|
|
|
|
|
|
|
hostPath: |
|
|
|
|
|
|
|
path: "/mnt/nfs-data/workspace" # NFS directory for workspace |
|
|
|
|
|
|
|
type: DirectoryOrCreate |
|
|
|
""" |
|
|
|
""" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|