From 1370be86e6d492899bad2d66f8f96f987d52182d Mon Sep 17 00:00:00 2001 From: newrain001 Date: Wed, 20 Dec 2023 19:58:50 +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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 625729e..f829e1f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,6 @@ spec: image: bitnami/kubectl:1.22.0 imagePullPolicy: IfNotPresent tty: true - args: ["get","pod","-A"] volumeMounts: - mountPath: "/etc/localtime" name: "volume-2" @@ -102,5 +101,13 @@ spec: } } } + stage('Check Kubernetes ENV') { + steps { + container(name: 'kubectl', shell: 'echo') { + sh 'sleep 10' + } + + } + } } }