-
New Feature
-
Resolution: Unresolved
-
Minor
-
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.