Using credentials with certificate

2018-10-04 Thread olivier blanc
I have problems while trying to load pkcs12 file from withCredentials block. Here is the code I use : withCredentials(bindings: [ certificate(aliasVariable: 'alias', credentialsId: 'myId', keystoreVariable: 'keystoreName', passwordVaria

How to use certificate files using withCredentials

2018-10-04 Thread olivier blanc
I am trying to retrieve keystore from a PKCS12 file stored as credential. Here is the code I use : withCredentials(bindings: [ certificate( aliasVariable: 'alias', credentialsId: 'myId', keystoreVariab

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,

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-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 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: How to use certificate files using withCredentials

2018-10-21 Thread olivier blanc
I finale use the kubernetes cli plugin that does the job. -- 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...@googlegroups.com. To view