From c8df28f564f6f00ed31205d87ef9a406b71bf09c Mon Sep 17 00:00:00 2001 From: newrain001 Date: Wed, 20 Dec 2023 19:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fa04925..0a49808 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,6 +40,7 @@ spec: image: bitnami/kubectl:1.22.0 imagePullPolicy: IfNotPresent tty: true + args: ["get","pod","-A"] volumeMounts: - mountPath: "/etc/localtime" name: "volume-2" @@ -78,7 +79,7 @@ spec: stage('Check Kubernetes ENV') { steps { container(name: 'kubectl', shell: 'echo') { - sh 'tail -f /dev/null' + sh 'kubectl get pod -A' } }