|
Hi,
Is it possible to access to a remote config.xml file from another Jenkins with the remote API ? I would like to get it like I can get a job config.xml file. Thanks in advance !
|
|
Nobody has never had this problematic?
2012/7/23 mpapo - Michaël Pailloncy <[hidden email]> Hi, |
|
a user with the extended read permission can get a job's config.xml from an URL like
$jenkins_scheme://$jenkins_host:$jenkins:port/$jenkins_context/jobs/$job_name/config.xml e.g. http://localhost:8080/jobs/foo/config.xml
On 25 July 2012 10:19, Michaël Pailloncy <[hidden email]> wrote: Nobody has never had this problematic? |
|
Thanks for your reply.
Excuse me, I have not phrased my question correctly.
But I wanna get the global config.xml of Jenkins, not the specific config file of a job. 2012/7/25 Stephen Connolly <[hidden email]> a user with the extended read permission can get a job's config.xml from an URL like |
|
sounds like a security issue.
you should be able to access it via the jenkins cli interface and a suitable groovy script ;-)
On 25 July 2012 11:04, Michaël Pailloncy <[hidden email]> wrote: Thanks for your reply. |
|
On 25 July 2012 11:09, Stephen Connolly <[hidden email]> wrote: sounds like a security issue. By that ^^^ I mean I would not be happy if somebody could easily do that to my instance as there can often be secrets embedded in the global config (because of lack of adoption by plugins of the credentials store that I convinced by employers to OSS earlier this year)
|
|
Yes, I would not be happy too :-)
But I have supposed that someone with administration privileges could get the global configuration of Jenkins like it's possible with job configuration.
My goal is to compare my local global config with a remote one.
I'm creating a plugin to compare job configuration and have the ability to merge some parts of the remote configuration file (using Remote API). I wish to do the same thing with global configuration of both local and remote Jenkins. 2012/7/25 Stephen Connolly <[hidden email]>
|
|
Did you find a solution on merging configuration files?
Am Mittwoch, 25. Juli 2012 13:48:47 UTC+2 schrieb mpapo - Michaël Pailloncy: Yes, I would not be happy too :-) |
|
Merging is not really the problem. I've created a plugin to compare and merge config.xml files of job.
But since we can't access to remote global config.xml file, we can't merge it. Michaël 2012/9/6 kayvi <[hidden email]> Did you find a solution on merging configuration files? |
|
Did you push your plugin to github? I need to manipulate the global config.xml and I'm looking for inspiration.
Cheers
Am Donnerstag, 6. September 2012 09:58:06 UTC+2 schrieb mpapo - Michaël Pailloncy: Merging is not really the problem. I've created a plugin to compare and merge config.xml files of job. |
|
I'm sorry I can't push it to github for the moment. I'm currently seeing with my company if I can. If I could, I'll let you know.
2012/9/6 kayvi <[hidden email]> Did you push your plugin to github? I need to manipulate the global config.xml and I'm looking for inspiration. |
|
In reply to this post by mpapo - Michaël Pailloncy
Why not have your plugin expose the config.xml itself... IOW fix your own problem. Also prevents requiring the latest version of jenkins
On 6 September 2012 08:58, Michaël Pailloncy <[hidden email]> wrote: Merging is not really the problem. I've created a plugin to compare and merge config.xml files of job. |
|
Good idea, you're totally right.
Thank you.
2012/9/6 Stephen Connolly <[hidden email]> Why not have your plugin expose the config.xml itself... IOW fix your own problem. Also prevents requiring the latest version of jenkins |
| Powered by Nabble | Edit this page |
