From 56a8c3236d48e7121b15961af98bceef50a9498b Mon Sep 17 00:00:00 2001 From: newrain001 Date: Wed, 21 Aug 2024 10:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'cloud/Jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud/Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cloud/Jenkinsfile b/cloud/Jenkinsfile index 4854a64..de1083e 100644 --- a/cloud/Jenkinsfile +++ b/cloud/Jenkinsfile @@ -48,9 +48,16 @@ agent { - mountPath: "/root/.m2" name: "maven-data" readOnly: false + - mountPath: "/home/jenkins/agent" # Workspace directory + name: "workspace-volume" + readOnly: false - name: nodejs - image: node:14 + image: registry.cn-hangzhou.aliyuncs.com/newrain857/node:14 command: ['cat'] + volumeMounts: + - mountPath: "/home/jenkins/agent" # Workspace directory + name: "workspace-volume" + readOnly: false tty: true - name: kubectl image: registry.cn-hangzhou.aliyuncs.com/newrain857/kubectl:v1.22.0 @@ -68,6 +75,9 @@ agent { subPath: config name: "kubeconfig" readOnly: false + - mountPath: "/home/jenkins/agent" # Workspace directory + name: "workspace-volume" + readOnly: false - name: docker image: registry.cn-hangzhou.aliyuncs.com/newrain857/docker:24.0.0-git command: ['cat'] @@ -76,6 +86,9 @@ agent { - mountPath: "/var/run/docker.sock" name: "volume-docker" readOnly: false + - mountPath: "/home/jenkins/agent" # Workspace directory + name: "workspace-volume" + readOnly: false volumes: - name: volume-2 hostPath: