Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48067

workspace-volume should be optional

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Plugin version 1.1

      The current defaultĀ volumeMounts for a slave pod includes:

      volumeMounts:
       - mountPath: /home/jenkins
       name: workspace-volume
      ...
        volumes:
        - emptyDir: {}
          name: workspace-volume
      

      I am building a custom image on top of jenkins/jnlp-slave:alpine and I have populated some files under:

      • /home/jenkins/.helm/
      • /home/jenkins/.config/

      Unfortunately everything under /home/jenkins vanishes because of the mount point.

      I wish I had the option forĀ /home/jenkins to not be mounted.

            Unassigned Unassigned
            h0tbird Marc Villacorta
            Votes:
            11 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: