更新 'Jenkinsfile'

main
newrain001 9 months ago
parent 9e3269c32d
commit c8df28f564
  1. 3
      Jenkinsfile

3
Jenkinsfile vendored

@ -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'
}
}

Loading…
Cancel
Save