|
|
@ -48,9 +48,16 @@ agent { |
|
|
|
- mountPath: "/root/.m2" |
|
|
|
- mountPath: "/root/.m2" |
|
|
|
name: "maven-data" |
|
|
|
name: "maven-data" |
|
|
|
readOnly: false |
|
|
|
readOnly: false |
|
|
|
|
|
|
|
- mountPath: "/home/jenkins/agent" # Workspace directory |
|
|
|
|
|
|
|
name: "workspace-volume" |
|
|
|
|
|
|
|
readOnly: false |
|
|
|
- name: nodejs |
|
|
|
- name: nodejs |
|
|
|
image: node:14 |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/node:14 |
|
|
|
command: ['cat'] |
|
|
|
command: ['cat'] |
|
|
|
|
|
|
|
volumeMounts: |
|
|
|
|
|
|
|
- mountPath: "/home/jenkins/agent" # Workspace directory |
|
|
|
|
|
|
|
name: "workspace-volume" |
|
|
|
|
|
|
|
readOnly: false |
|
|
|
tty: true |
|
|
|
tty: true |
|
|
|
- name: kubectl |
|
|
|
- name: kubectl |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/kubectl:v1.22.0 |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/kubectl:v1.22.0 |
|
|
@ -68,6 +75,9 @@ agent { |
|
|
|
subPath: config |
|
|
|
subPath: config |
|
|
|
name: "kubeconfig" |
|
|
|
name: "kubeconfig" |
|
|
|
readOnly: false |
|
|
|
readOnly: false |
|
|
|
|
|
|
|
- mountPath: "/home/jenkins/agent" # Workspace directory |
|
|
|
|
|
|
|
name: "workspace-volume" |
|
|
|
|
|
|
|
readOnly: false |
|
|
|
- name: docker |
|
|
|
- name: docker |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/docker:24.0.0-git |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/newrain857/docker:24.0.0-git |
|
|
|
command: ['cat'] |
|
|
|
command: ['cat'] |
|
|
@ -76,6 +86,9 @@ agent { |
|
|
|
- mountPath: "/var/run/docker.sock" |
|
|
|
- mountPath: "/var/run/docker.sock" |
|
|
|
name: "volume-docker" |
|
|
|
name: "volume-docker" |
|
|
|
readOnly: false |
|
|
|
readOnly: false |
|
|
|
|
|
|
|
- mountPath: "/home/jenkins/agent" # Workspace directory |
|
|
|
|
|
|
|
name: "workspace-volume" |
|
|
|
|
|
|
|
readOnly: false |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- name: volume-2 |
|
|
|
- name: volume-2 |
|
|
|
hostPath: |
|
|
|
hostPath: |
|
|
|