Connecting static node within 'jenkins-kubernetes-plugin' dynamic environment.

2018-03-05 Thread WANG, YAN-HONG
Hello, I use jenkins-kubernetes-plugin to run Jenkins in Kubernetes cluster. So far that works perfectly. All the nodes are automatically generated and destroyed in right moment of pipeline. But, is it possible to connect external *static node *within Jenkins of Kubernetes cluster ? By definitio

The format of key of containerEnvVar within Jenkins Kubernetes Plugin

2017-08-09 Thread WANG, YAN-HONG
Hello, I am Hong. I saw "*containerEnvVar*" was supported by Jenkins *Kubernetes* Plugin 0.9. But, it seems not support some key value with *dot*? Example in *containerTemplate*: *containerEnvVar*( key: “*data.source.url*”, value: “somewhere” ) I tried to use *backslash *to escape *dot*, but Je

Re: Using Secrets as "environment variables" in containerTemplate of jenkins-kubernetes-plugin

2017-08-10 Thread WANG, YAN-HONG
@Carlos, Thanks!!! 2017-08-10 21:27 GMT+02:00 Carlos Sanchez : > There is a PR for it https://github.com/jenkinsci/ > kubernetes-plugin/pull/162 > > On Thu, Aug 10, 2017 at 9:15 PM, YAN-HONG WANG > wrote: > >> Hi, >> >> In jenkins-kubernetes-plugin, is there any syntax that support using *Secret

Image name and version of containerTemplate by variable created during execution of pipeline?

2017-08-11 Thread WANG, YAN-HONG
Hello all, I saw the tutorial with jenkins-kubernetes-plugin. https://github.com/jenkinsci/kubernetes-plugin The examples of containerTemplate are all created in the *beginning *of groovy file. And the *image name with version number *are *fixed*, too. Example like this below. containerTemplate(

Re: Image name and version of containerTemplate by variable created during execution of pipeline?

2017-08-17 Thread WANG, YAN-HONG
gt;>>>> image: "myregistry:5000/jenkins-worker:latest", >>>>>>>> envVars:[ >>>>>>>> containerEnvVar( key: "PGUSER", value: "pguser" ), >>>>>>>> containerEn

Re: Image name and version of containerTemplate by variable created during execution of pipeline?

2017-08-18 Thread WANG, YAN-HONG
Hello Carlos, Thanks for your hint. I will try it. Hong 2017-08-18 9:42 GMT+02:00 Carlos Sanchez : > The you would need 2 podTemplate entries, one after another > > On Thu, Aug 17, 2017 at 10:59 PM, WANG, YAN-HONG > wrote: > >> Hello Carlos, >> >> Than

Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked.

2017-10-02 Thread WANG, YAN-HONG
Hi I meet a error message while I tried "*Test Connection*" *Error connecting to https://kubernetes.default.svc.cluster.local : Failure executing: GET at: https://kubernetes.default.svc.cluster.local/api/v1/namespaces/build-env/pods

Failed to connect to http://jenkins.build-env.svc.cluster.local:8080/tcpSlaveAgentListener/: jenkins.build-env.svc.cluster.local

2017-10-05 Thread WANG, YAN-HONG
Hello, My environment: Jenkins: 2.73.1 Jenkins plugin (kubernetes: *1.0*). Kuberntes Server: *v1.7.7* ( One master and one minion) Platform: Ubuntu 16.04 (in *Synnefo *cluster environment) When I execute pipeline job with kubernetes plugin in Jenkins environment. The slave-jksnf-q6dlr is stay in

Re: Failed to connect to http://jenkins.build-env.svc.cluster.local:8080/tcpSlaveAgentListener/: jenkins.build-env.svc.cluster.local

2017-11-20 Thread WANG, YAN-HONG
pSlaveAgentListener/>* >>>>>>> >>>>>>> >>>>>>> * Jenkins* >>>>>>> -------- >>>>>>> -

Re: Failed to connect to http://jenkins.build-env.svc.cluster.local:8080/tcpSlaveAgentListener/: jenkins.build-env.svc.cluster.local

2017-11-21 Thread WANG, YAN-HONG
-it slave-0cnkz-gv0bg >>>>>>>>> --container=worker nslookup *jenkins.build-env* >>>>>>>>> nslookup: can't resolve '(null)': Name does not resolve >>>>>>>>> >>>>>>>>> >