Re: Jenkins kubernetes Client
ah, ok so you're using a custom jenkins image. I assume you don't get this error when using the generic jenkins image? and then does it work ok if you take out the install-plugins script from your custom image? (to be honest, I don't have any experience with this approach or this error, just trying to help you pinpoint what the actual problem is) On Saturday, April 1, 2017 at 1:35:18 AM UTC+2, Sudha Subramanian wrote: > > 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/bf354dd3-7ea5-4184-95a6-d19de73142a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins kubernetes Client
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.
Re: Jenkins kubernetes Client
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/64caa2fb-d06e-4c8c-81b6-d963a808451e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jenkins kubernetes Client
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.