Authored by jimi

add

... ... @@ -115,10 +115,10 @@ pipeline {
script {
sleep(30)
def KUBECONFIG = "${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/kube-config"
def CHECKKUBE= "kubectl get deployemnt --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName} | awk '{print \$3,\$4,\$5,\$6}'"
def SHOWPODINFO= "kubectl get pods --all-namespaces --kubeconfig=$KUBECONFIG |grep ${params.deployName}"
def CHECKKUBE= "/usr/local/bin/kubectl get deployemnt --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: "kubectl get deployemnt --all-namespaces --kubeconfig=/Data/config |grep $deployName-deployment | awk '{print \$3}'"
def result = sh returnStdout: true ,script: "$CHECKKUBE"
result = result.trim()
if(result==''){
error 'the is no date,please check the result'
... ...