Deploying a app to kubernetes through jenkins

3/12/2018

I'm trying to deploy a app to kubernetes cluster through jenkins using Kubernetes Continuous Deploy plugin. I copied the config .yml file into jenkins machine and gave the path in the build step and I'm getting a error:

"No matching configuration files found"

screenshots of the plugin and console out are in links.

Plugin

Console output

-- srinivasb
jenkins
kubernetes

2 Answers

3/16/2018

I saw same error on my jenkins server then i fixed it by correcting the path.

Can you put your .yml files to your source control. Because Kubernetes Continuous Deploy plugin will check your workspace.

And plugin will check your path and it will not find it. I attached images and you can see my working configurations.

config path project structure

-- Ercan Aydogan
Source: StackOverflow

12/12/2018
  1. Add the .yml file to the github repository
  2. Put the following as the path for the file $workspace/deployment.yml
  3. Checkout the repository from the git url to the job's workspace.
-- kumar
Source: StackOverflow