Re: Jenkins Kuberenet Plugin

2020-10-07 Thread David Foley
Am I correct that pipelines are only supported and not Freestyle? I created a Test Pipeline, and am able to see the ansible version when I ran "sh 'ansible --version'" so it appears the freestyle is using the JNLP container. On Wed, 7 Oct 2020 at 21:24, David Foley wrote: > Hi Nigel > > I'm usi

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread David Foley
Hi Nigel I'm using FreeStyle Project. I have selected restricted to run on Node: Ansible On Wed, 7 Oct 2020 at 20:42, Nigel Armstrong wrote: > David, > > It sounds like you might not be running the step inside the > right container. By default steps are runin the jnlp container. You need to > s

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread Nigel Armstrong
David, It sounds like you might not be running the step inside the right container. By default steps are runin the jnlp container. You need to specify `container('container-name') {` for which container to run in. See the documentation: https://plugins.jenkins.io/kubernetes/ -Nigel On Wed, Oct 7

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread David Foley
When jenkins deploys the pod jnlp container along with my ansible container is created within that Pod, My docker file is using Ubuntu should I be using the jenkins/jnlp image instead. If I keep the pod after the jobs fails and execute shell a d run which ansible is shows the path On Wed 7 Oct 20

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread nigel.a...@braincorp.com
David, Looks like your issue isn't with the dockerfile, but with ansible. The failure is listed as `ansible: not found`. Make sure your executor has ansible and its in the path. Note the user and directory jenkins is running the command in. -Nigel On Wednesday, October 7, 2020 at 4:09:38 AM UT

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread Arnaud bourree
Hi, Could I suggest you to install at least Python 3.6 and not 3.3? Arnaud Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie a écrit : > Hi All, > > Could do with some help with this one, I'm currently trying to use > Kubernetes to build containers for jobs that will run within Jenkins. I'm > cur

Jenkins Kuberenet Plugin

2020-10-06 Thread david...@mycit.ie
Hi All, Could do with some help with this one, I'm currently trying to use Kubernetes to build containers for jobs that will run within Jenkins. I'm currently having the issue where my Docker File has Ansible installed but, for some reason,it's not able to run if the Container is built with Je