Quantcast

Jenkins global config.xml remote access

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
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 !
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
Nobody has never had this problematic?

2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>
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 !

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

stephenconnolly
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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>
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 !


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
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

$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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>
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 !



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

stephenconnolly
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.
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

$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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>
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 !




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

stephenconnolly


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)
 
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.
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

$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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>
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 !





Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
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]>


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)
 
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.
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

$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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>
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 !






Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

kayvi
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 :-)
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_MqqCjkjk2MJ">stephen.al...@gmail.com>


On 25 July 2012 11:09, Stephen Connolly <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_MqqCjkjk2MJ">stephen.al...@gmail.com> 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)
 
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_MqqCjkjk2MJ">mpap...@...> wrote:
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_MqqCjkjk2MJ">stephen.al...@gmail.com>
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_MqqCjkjk2MJ">mpap...@...> wrote:
Nobody has never had this problematic?


2012/7/23 mpapo - Michaël Pailloncy <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_MqqCjkjk2MJ">mpap...@...>
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 !






Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
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?

Am Mittwoch, 25. Juli 2012 13:48:47 UTC+2 schrieb mpapo - Michaël Pailloncy:
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 <stephen.al...@gmail.com>


On 25 July 2012 11:09, Stephen Connolly <stephen.al...@gmail.com> 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)
 
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.
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 <stephen.al...@gmail.com>
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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>

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 !







Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

kayvi
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. 
But since we can't access to remote global config.xml file, we can't merge it.

Michaël

2012/9/6 kayvi <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="LaEJmk8IqesJ">valev...@...>
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 :-)
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 <stephen.al...@gmail.com>


On 25 July 2012 11:09, Stephen Connolly <stephen.al...@gmail.com> 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)
 
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.
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 <stephen.al...@gmail.com>
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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>

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 !







Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
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.

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. 
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?

Am Mittwoch, 25. Juli 2012 13:48:47 UTC+2 schrieb mpapo - Michaël Pailloncy:
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 <stephen.al...@gmail.com>


On 25 July 2012 11:09, Stephen Connolly <stephen.al...@gmail.com> 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)
 
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.
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 <stephen.al...@gmail.com>
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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>

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 !








Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

stephenconnolly
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. 
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?

Am Mittwoch, 25. Juli 2012 13:48:47 UTC+2 schrieb mpapo - Michaël Pailloncy:
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 <stephen.al...@gmail.com>


On 25 July 2012 11:09, Stephen Connolly <stephen.al...@gmail.com> 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)
 
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.
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 <stephen.al...@gmail.com>
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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>

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 !








Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins global config.xml remote access

mpapo - Michaël Pailloncy
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


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. 
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?

Am Mittwoch, 25. Juli 2012 13:48:47 UTC+2 schrieb mpapo - Michaël Pailloncy:
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 <stephen.al...@gmail.com>


On 25 July 2012 11:09, Stephen Connolly <stephen.al...@gmail.com> 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)
 
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.
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 <stephen.al...@gmail.com>
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?


2012/7/23 mpapo - Michaël Pailloncy <[hidden email]>

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 !









Loading...