-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Jenkins and plugins versions report
Environment
Paste the output here
What Operating System are you using (both controller, and any agents involved in the problem)?
GKE 1.24.7-gke.900 Google Kubernetes Engine Plugin 0.8.7 Jenkins 2.375.2
Reproduction steps
step([ $class: 'KubernetesEngineBuilder', projectId: env.PROJECT_ID, clusterName: env.CLUSTER_NAME, location: env.REGION, manifestPattern: 'deployment-app.yaml', credentialsId: env.CREDENTIALS_ID, verifyDeployments: true])
Expected Results
Deployment will Succeed
Actual Results
Deployment failing when verfy=true is passed
Verifying: apps/v1/Deployment: deployment-app Failed to verify apps/v1/Deployment: deployment-app java.io.IOException: Failed to launch command args: [kubectl, --kubeconfig, /var/lib/jenkins/workspace/sample_dev_gke_deploy@tmp/.kube5135053502047210947config, get, deployment, deployment-app, -o, json], status: 1. Logs: Error from server (NotFound): deployments.apps "deployment-app" not found at com.google.jenkins.plugins.k8sengine.KubectlWrapper.launchAndJoinCommand(KubectlWrap