Open wadexu007 opened 1 year ago
Facing a similar error:
Failed to verify apps/v1/Deployment: app-test java.io.IOException: Failed to launch command args: [kubectl, --kubeconfig, /var/lib/jenkins/workspace/sample_dev_gke_deploy@tmp/.kube14897892684774139622config, get, deployment, catalog-management, -o, json], status: 1. Logs: Error from server (NotFound): deployments.apps "app-test" not found
Is this issue resolved still existing ? As per our understanding deployment happens but jenkins plugin is not able to verify?
So it is safe to by pass this error till the issue gets fixed ?
Hi @wadexu007 were you able to fix this error we are also facing a similar issue
@bangupoc Not fix.
disable it currently. verifyDeployments: false
@wadexu007 you are not setting the namespace in your step arguments. Works for me with:
step([
$class: 'KubernetesEngineBuilder',
projectId: params.project,
clusterName: env.CLUSTER_NAME,
location: env.LOCATION,
namespace: env.NAMESPACE,
manifestPattern: 'newDeploy.yaml',
credentialsId: env.GCP_CREDENCIALS_ID,
verifyDeployments: true,
verifyTimeoutInMinutes: 10
])
Jenkins and plugins versions report
Environment
```text Google Kubernetes Engine Plugin 0.8.7 Jenkins 2.361.3 ```What Operating System are you using (both controller, and any agents involved in the problem)?
GKE 1.22 Google Kubernetes Engine Plugin 0.8.7 Jenkins 2.361.3
Reproduction steps
This is work when my
deployment.yaml
deploy to a default namespace.But once my deployment in a non-default namespace,
Verifying: apps/v1/Deployment: demo-app
timeout till throws errors:Expected Results
Verified successfully same as I use
default
namespace.Actual Results
Failed to verify apps/v1/Deployment: demo-app
Anything else?
my deployment.yaml is easy.