Re: Using a Jenkins Slave in openshift

2016-08-12 Thread Akshaya Khare
Apparently your suggestion was right, I had to add permissions for the file. I got confused because I was using github as source, and didnt realize we could use git as well. I copied the code to my local git, changed permissions and was able to run the pod successfully. There were some

Re: Using a Jenkins Slave in openshift

2016-08-11 Thread Akshaya Khare
By execute permissions in the repo I hope you mean in the Dockerfile... these are the current commands in my docker file: *mkdir -p /var/lib/jenkins && \chown -R 1001:0 /var/lib/jenkins && \chmod -R g+w /var/lib/jenkins* So if I add 'chmod -R g+x' to the /var/lib/jenkins, it should do the

Re: Using a Jenkins Slave in openshift

2016-08-11 Thread Ben Parees
On Thu, Aug 11, 2016 at 11:18 AM, Akshaya Khare wrote: > I'm adding the run-jnlp-client > > file into my github repository under configuration folder. > ​does it have execute

Re: Using a Jenkins Slave in openshift

2016-08-11 Thread Ben Parees
On Thu, Aug 11, 2016 at 11:10 AM, Akshaya Khare wrote: > Hi, > > Thanks for the detailed explanation, and I did get far but got stuck again. > So I was able to build a slave Jenkins image and created a buildconfig. > After updating the Kubernetes plugin configurations, I

Re: Using a Jenkins Slave in openshift

2016-08-11 Thread Akshaya Khare
Hi, Thanks for the detailed explanation, and I did get far but got stuck again. So I was able to build a slave Jenkins image and created a buildconfig. After updating the Kubernetes plugin configurations, I was able to spawn a new pod, but the pod fails with the error "ContainerCannotRun". On

Re: Using a Jenkins Slave in openshift

2016-08-08 Thread Ben Parees
The sample defines a buildconfig which ultimately uses this directory as the context for a docker build: https://github.com/siamaksade/jenkins-s2i-example/tree/master/slave it does that by pointing the buildconfig to this repo: https://github.com/siamaksade/jenkins-s2i-example and the context

Re: Using a Jenkins Slave in openshift

2016-08-05 Thread Ben Parees
You'll need to define the imagestream you've got the build pushing to, the sample does that here: https://github.com/siamaksade/jenkins-s2i-example/blob/master/jenkins-slave-builder-template.yaml#L12-L21 you'll need to name the imagestream "jdk8-jenkins-slave" in your case. On Fri, Aug 5, 2016

Re: Using a Jenkins Slave in openshift

2016-08-05 Thread Akshaya Khare
I've attached the buildconfig, and the project name is "jenkinstin2"... On Fri, Aug 5, 2016 at 2:38 PM, Ben Parees wrote: > > > On Fri, Aug 5, 2016 at 2:28 PM, Akshaya Khare > wrote: > >> Hi, >> >> I have a project configured in jenkins