[JIRA] (JENKINS-62012) Allow global yaml to be merged into yaml of jobs

2 views
Skip to first unread message

arjan.tijms@gmail.com (JIRA)

unread,
Apr 22, 2020, 10:31:03 AM4/22/20
to jenkinsc...@googlegroups.com
Arjan Tijms created an issue
 
Jenkins / New Feature JENKINS-62012
Allow global yaml to be merged into yaml of jobs
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: kubernetes-plugin
Created: 2020-04-22 14:30
Priority: Minor Minor
Reporter: Arjan Tijms

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.

 

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages