<p>I've been trying to mount a hostPathVolume in a Kubernetes-plugin podTemplate and when the pod gets kicked off via Jenkins master the path is never mounted.</p>

<p>I've deployed Openshift v3.10 in a 5 node cluster, which comes with Jenkins (v 2.89.2) templates and the Kubernetes plugin (v 0.10) already available.  In my project I am deploying the jenkins-ephemeral template to test out configuration of a pipeline build.  When my pipeline gets kicked off, my custom jenkins agent pod gets kicked off as I expect by the Jenkins master container, but my configured hostPathVolume mount is never mounted.  I've tried numerous directories and files, but can't get any of them to mount.  Wondering if it could be permissions, but jenkins and my pod log don't show any errors or problems relating to mounting the directory or files.  I have a ConfigMap configured like so (omitted some of the tags for brevity):</p>

<pre><code>     apiVersion: v1
     metadata:
       name: jenkins-agent-test
     labels:
       role: jenkins-slave
     data:
       dino: |-
         &lt;org.csanchez.jenkins.plugins.kubernetes.PodTemplate&gt;
           &lt;inheritFrom&gt;&lt;/inheritFrom&gt;
           &lt;name&gt;dino&lt;/name&gt;
           &lt;label&gt;dino&lt;/label&gt;
           &lt;serviceAccount&gt;jenkins&lt;/serviceAccount&gt;
           &lt;nodeSelector&gt;&lt;/nodeSelector&gt;
           &lt;containers&gt;
             &lt;org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate&gt;
               &lt;name&gt;jnlp&lt;/name&gt;
               &lt;image&gt;blah.blah.blah/deploy/jenkins-agent-test&lt;/image&gt;
               ...
           &lt;/containers&gt;
           &lt;volumes&gt;
             &lt;hostPathVolume&gt;
               &lt;mountPath&gt;/tmp/test&lt;/mountPath&gt;
               &lt;hostPath&gt;/home/sysadmin/test&lt;/hostPath&gt;
             &lt;/hostPathVolume&gt;
           &lt;/volumes&gt;
           ...
         &lt;/org.csanchez.jenkins.plugins.kubernetes.PodTemplate&gt;

I expect the volume to be mounted in my pod. oc describe pod dino does not show the mounted volume and I logged into my pod and verified the path is not mounted.  Not sure what else to try or where to look.
</code></pre>

gshepherd7
<p>Figured it out.  Maybe this will help someone else.  You have to specify the full package for hostPathVolumes...</p>

<pre><code>&lt;volumes&gt;
  &lt;org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume&gt;
     &lt;mountPath&gt;/tmp/test&lt;/mountPath&gt;
     &lt;hostPath&gt;/home/sysadmin/test&lt;/hostPath&gt;
  &lt;/org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume&gt;
&lt;/volumes&gt;
</code></pre>
