Re: Jenkins plugin to access Kubernetes API

2018-10-21 Thread olivier blanc
Here is a code example : label = "worker-${UUID.randomUUID().toString()}" cloudName="MyCloudNameDefinedInJenkinsMainConfiguration" podTemplate ( cloud: cloudName, label: label, yaml: """ apiVersion: v1 kind: Pod metadata: labels: some-label: ${label} spec: containers: - na

Re: Jenkins plugin to access Kubernetes API

2018-10-21 Thread olivier blanc
I tried Kubernetes cli plugin and it feets pretty well to my needs. Regards Olivier -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@

Re: Jenkins plugin to access Kubernetes API

2018-10-21 Thread sagar utekar
On Thursday, October 4, 2018 at 10:45:19 PM UTC+5:30, olivier blanc wrote: > I am looking for a Jenkins plugin to interact with kubernetes api from > jenkins pipeline. > Is there such a plugin ? > Thanks > Olivier Have you solved this issue, I am also looking for solution for same thing. -- You

Re: Jenkins plugin to access Kubernetes API

2018-10-06 Thread JonathanRRogers
On Friday, October 5, 2018 at 4:22:22 AM UTC-4, olivier blanc wrote: > > I have a first version that works fine with scripts, I am trying to figure > out if using API could be easier for my users. > > The point is that I am running Jenkins outside kubernetes. > So to access Kube master, I have to

Re: Jenkins plugin to access Kubernetes API

2018-10-05 Thread olivier blanc
I have a first version that works fine with scripts, I am trying to figure out if using API could be easier for my users. The point is that I am running Jenkins outside kubernetes. So to access Kube master, I have to open ssh and run kubectl with command line arguments, or prepare either Yaml/Js

Re: Jenkins plugin to access Kubernetes API

2018-10-05 Thread James Nord
Why do you want a plugin? Logic is best done in scripts that can be debugged locally outside of Jenkins leaving pipeline to do orchestration and reporting. Is there a reason you can not use kubectl directly? On Thu, 4 Oct 2018, 18:15 olivier blanc, wrote: > I am looking for a Jenkins plugin to

Jenkins plugin to access Kubernetes API

2018-10-04 Thread olivier blanc
I am looking for a Jenkins plugin to interact with kubernetes api from jenkins pipeline. Is there such a plugin ? Thanks Olivier -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it,

Jenkins plugin to access Kubernetes API

2018-10-04 Thread olivier blanc
I am looking for a Jenkins plugin to interact with kubernetes api from jenkins pipeline. Is there such a plugin ? Thanks Olivier -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it,