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
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?
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 JenkinsfileHere 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
so what am i missing here? why is it not deleting?