kubernetes-cd-plugin icon indicating copy to clipboard operation
kubernetes-cd-plugin copied to clipboard

using dir causes IllegalStateException

Open srolel opened this issue 6 years ago • 2 comments

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.

srolel avatar Jun 29 '18 05:06 srolel

steps {
    dir('cicd') {
        sh 'ls -l'
        kubernetesDeploy(
                configs: './deploy.yaml',
                kubeconfigId: 'kebuconfig',
                enableConfigSubstitution: true,
        )
    }
}

v1.0.0 same problem, can't use dir.

win5do avatar Jun 19 '19 01:06 win5do

Same issue!

When I set the deployment.yaml route to the child module, for example, ./business01/deployment.yaml, get the same error!

JamesLiAndroid avatar Apr 08 '20 08:04 JamesLiAndroid