jenkins-cli icon indicating copy to clipboard operation
jenkins-cli copied to clipboard

Add support to save config file on a git provider

Open LinuxSuRen opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Case 1: I have two computers, one is at home, another is at my company. I need to copy the config file from one place to another place. Case 2: Our team has serval Jenkins servers need to manage. Sharie those config files are quite helpful to us.

Describe the solution you'd like It'll be super helpful if store these config files in git.

jcli config init https://github.com/jenkins-zh/sample-fake-config.git could be a solution to fetch the config files.

Consider how to update the config files.

Describe alternatives you've considered None.

Additional context None.

LinuxSuRen avatar Sep 27 '19 04:09 LinuxSuRen

Another similar solution is that support multiple config path. For example, the default config path is ~/.jenkins-cli.yaml. We can have more paths to resolve. Find the config file from the current directory, then find ~/.jenkins-cli.yaml, then ~/.jenkins-cli/.jenkins-cli.yaml

LinuxSuRen avatar Sep 27 '19 08:09 LinuxSuRen