Skip to content

GKE deployment from Jenkins Issues fails in Verify issue #307

@vramanufidato

Description

@vramanufidato

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

Anything else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions