Re: Jenkins kubernetes Client

2017-03-31 Thread Sudha Subramanian
This is the core part of my jenkins.yml file
 

>  containers:
>
> - name: jenkins-tnrp-master
>
>   image: tnrp/jenkins:2.32.3
>
>   ports:
>
>   - containerPort: 8080
>
>   - containerPort: 5
>
>   resources:
>
> limits: { cpu: "10", memory: "20Gi" }
>
> requests: { cpu: "10", memory: "20Gi" }
>
>   volumeMounts:
>
> - mountPath: /var/jenkins_home
>
>   name: jenkins-data
>
>   livenessProbe:
>
> httpGet:
>
>   path: /
>
>   port: 8080
>
> initialDelaySeconds: 5
>
> volumes:
>
>   - name: jenkins-data
>
> emptyDir: {}
>


I get this error when it is trying to start Jenkins. My Dockerfile for 
creating the jenkins image looks like this:

FROM jenkins
>
>
> RUN /usr/local/bin/install-plugins.sh kubernetes:0.11 
> workflow-aggregator:2.5 credentials-binding:1.10 git:3.2.0 \
>
> && mkdir -p /usr/share/jenkins/ref/secrets/ \
>
> && echo "false" > 
> /usr/share/jenkins/ref/secrets/slave-to-master-security-kill-switch
>
>
>
> # ENV VERSION 0.4-SNAPSHOT
>
> # COPY target/kubernetes.hpi /usr/share/jenkins/ref/plugins/kubernetes.hpi
>
> # RUN curl -o /usr/share/jenkins/ref/plugins/kubernetes.hpi \
>
> #  
> http://repo.jenkins-ci.org/snapshots/org/csanchez/jenkins/plugins/kubernetes/0.4/kubernetes-$VERSION.hpi
>
>
> # remove executors in master
>
> COPY src/main/docker/master-executors.groovy 
> /usr/share/jenkins/ref/init.groovy.d/
>


On Friday, March 31, 2017 at 12:14:38 AM UTC-7, Knurek wrote:
>
> I recently setup jenkins using the `kubernetes-plugin` and didn't have any 
> issues like this.
> Where/when do you get this error? what's your kubernetes yaml file look 
> like?
>
>
> On Thursday, March 30, 2017 at 6:30:52 AM UTC+2, Sudha Subramanian wrote:
>>
>> Hi,
>>
>> I'm trying to run Jenkins in kubernetes with 'kubernetes-client' plugin 
>> for dynamic slaves. I get the following error:
>>
>> Caused by: java.text.ParseException: failed to load settings from 
>>> jar:file:/var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.7.jar!/groovy/grape/defaultGrapeConfig.xml:
>>>  
>>> impossible to add configured child for ivy on class 
>>> org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be 
>>> absolute: ?/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml
>>>
>>
>> The same Jenkins image runs on my mac without any issues. Has anyone 
>> encountered this issue running Jenkins in Kubernetes with the client plugin 
>> enabled?
>>
>> Thanks,
>> Sudha
>>
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/45a8eccf-1629-469d-89cc-5038a4987204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins kubernetes Client

2017-03-29 Thread Sudha Subramanian
Hi,

I'm trying to run Jenkins in kubernetes with 'kubernetes-client' plugin for 
dynamic slaves. I get the following error:

Caused by: java.text.ParseException: failed to load settings from 
> jar:file:/var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.7.jar!/groovy/grape/defaultGrapeConfig.xml:
>  
> impossible to add configured child for ivy on class 
> org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be 
> absolute: ?/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml
>

The same Jenkins image runs on my mac without any issues. Has anyone 
encountered this issue running Jenkins in Kubernetes with the client plugin 
enabled?

Thanks,
Sudha

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/23cb3e7e-b356-4255-8f05-0696964cc7ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.