Showing
1 changed file
with
1 additions
and
1 deletions
@@ -115,7 +115,7 @@ pipeline { | @@ -115,7 +115,7 @@ pipeline { | ||
115 | script { | 115 | script { |
116 | sleep(30) | 116 | sleep(30) |
117 | def KUBECONFIG = "${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/kube-config" | 117 | def KUBECONFIG = "${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/kube-config" |
118 | - def CHECKKUBE= "/usr/local/bin/kubectl get deployemnt --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName} | awk '{print \$3,\$4,\$5,\$6}'" | 118 | + def CHECKKUBE= "/usr/local/bin/kubectl get deployment --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName} | awk '{print \$3,\$4,\$5,\$6}'" |
119 | def SHOWPODINFO= "/usr/local/bin/kubectl get pods --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName}" | 119 | def SHOWPODINFO= "/usr/local/bin/kubectl get pods --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName}" |
120 | for(int i = 0;i<=60;i++) { | 120 | for(int i = 0;i<=60;i++) { |
121 | def result = sh returnStdout: true ,script: "$CHECKKUBE" | 121 | def result = sh returnStdout: true ,script: "$CHECKKUBE" |
-
Please register or login to post a comment