jenkinsci / kubernetes-cd-plugin

A Jenkins plugin to deploy to Kubernetes cluster
MIT License
139 stars 70 forks source link

deleteResource is not working or deleting resources #121

Open encryptblockr opened 4 years ago

encryptblockr commented 4 years ago

I have the kubernetes cd plugin installed on jenkins and was able to deploy with kubectl but unable to destroy using the deleteResource option in my Jenkinsfile

Here is what i have

kubernetesDeploy(configs: "app.yaml", kubeconfigId: "k8s-cluster", deleteResource: true)

and here is what i get on jenkins, the job shows as successful but nothing is deleted

[Pipeline] kubernetesDeploy
WARNING: Unknown parameter(s) found for class type 'com.microsoft.jenkins.kubernetes.KubernetesDeployContext': deleteResource
Starting Kubernetes deployment

so what am i missing here? why is it not deleting?