kubernetes-cd-plugin
kubernetes-cd-plugin copied to clipboard
using dir causes IllegalStateException
version 0.2.3
stage('deploy') {
dir('app') {
kubernetesDeploy(kubeconfigId: 'kubeconfigId', configs: 'dev/*.yaml')
}
}
I get (though it did find the file names in the folder):
ERROR: java.lang.IllegalStateException: No matching configuration files found for dev/deployment.yaml dev/ingress.yaml dev/service.yaml
But if I use 'app/dev/*.yaml'
without the dir
, it works.
steps {
dir('cicd') {
sh 'ls -l'
kubernetesDeploy(
configs: './deploy.yaml',
kubeconfigId: 'kebuconfig',
enableConfigSubstitution: true,
)
}
}
v1.0.0 same problem, can't use dir.
Same issue!
When I set the deployment.yaml route to the child module, for example, ./business01/deployment.yaml, get the same error!