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

Allow global yaml to be merged into yaml of jobs

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      A Jenkinsfile in a project may contain an embedded agent -> kubernetes -> yaml file that is tailored for one environment, for instance a Jenkins running jobs on OpenShift where it assumes a (random) user ID is assigned, and demands that no securityContext: runAsUser is defined.

      Another environment, such as e.g. a local Jenkins instance using a local Kubernetes cluster may not do this, and pods using multiple images where the docker file sets different users will not run correctly then.

      It would be useful in this case if the Jenkins instance could define a global pod yaml at manage jenkins -> Manage nodes and clouds -> Kubernetes Cloud Details that will be merged into the yaml created by org.csanchez.jenkins.plugins.kubernetes.PodTemplateBuilder

       

      If this is an acceptable feature, I can create a PR for this.

       

       

       

            Unassigned Unassigned
            atijms Arjan Tijms
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: