Authored by jimi

add check deploy

... ... @@ -115,7 +115,7 @@ pipeline {
script {
sleep(30)
def KUBECONFIG = "${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/kube-config"
def CHECKKUBE= "/usr/local/bin/kubectl get deployemnt --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName} | awk '{print \$3,\$4,\$5,\$6}'"
def CHECKKUBE= "/usr/local/bin/kubectl get deployment --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName} | awk '{print \$3,\$4,\$5,\$6}'"
def SHOWPODINFO= "/usr/local/bin/kubectl get pods --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName}"
for(int i = 0;i<=60;i++) {
def result = sh returnStdout: true ,script: "$CHECKKUBE"
... ...