Modify kubectl delete sequence
Change-Id: I349e3afa9ed9a512d0272cae9b811a5398415404
diff --git a/Jenkinsfile-mcord-build b/Jenkinsfile-mcord-build
index 5d8de06..bd27d8f 100644
--- a/Jenkinsfile-mcord-build
+++ b/Jenkinsfile-mcord-build
@@ -46,7 +46,11 @@
stage("Cleanup SR-IOV CNI and SR-IOV Network Device Plugin") {
sh returnStdout: true, script: """
export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
- kubectl delete -f mcord/cni-config/
+ kubectl delete -f mcord/cni-config/05-sriov-device-plugin.yaml
+ kubectl delete -f mcord/cni-config/04-sriov-device-plugin-configmap.yaml
+ kubectl delete -f mcord/cni-config/03-network-definition.yaml
+ kubectl delete -f mcord/cni-config/02-network-crd.yaml
+ kubectl delete -f mcord/cni-config/01-cni-service-account.yaml
"""
}
}