[JIRA] (JENKINS-59832) Multiple inheritFrom templates ignored in declarative pipeline

6 views
Skip to first unread message

andoriyu@gmail.com (JIRA)

unread,
Oct 17, 2019, 4:42:02 PM10/17/19
to jenkinsc...@googlegroups.com
Andrey Cherkashin created an issue
 
Jenkins / Bug JENKINS-59832
Multiple inheritFrom templates ignored in declarative pipeline
Issue Type: Bug Bug
Assignee: Unassigned
Components: kubernetes-plugin
Created: 2019-10-17 20:41
Environment: Jenkins ver. 2.197
Plugin version: 1.20.0
Priority: Minor Minor
Reporter: Andrey Cherkashin

This was working with 1.16.1 version of a plugin. Possible regression?

 

Here is agent configuration that used to work:

 

agent {
 kubernetes {
   label "${pipelineParams.argoApplicationPrefix}-preflight"
   defaultContainer 'jnlp'
   idleMinutes 1
   inheritFrom "maven mysql-57 kaniko"
 }

After upgrading to to 1.20.0 resulting pod template only what was in last entry in that list.

 

Documentation is lacking on how one can change `yamlMergeStrategy` in declarative pipeline, but I tried creating the same pod temple in Global Configuration with `merge` as strategy - no luck.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

thomas.rame@outlook.com (JIRA)

unread,
Feb 15, 2020, 10:17:03 PM2/15/20
to jenkinsc...@googlegroups.com
Thomas Ramé commented on Bug JENKINS-59832
 
Re: Multiple inheritFrom templates ignored in declarative pipeline

Andrey Cherkashin did you fix this issue? I'm facing the exact same problem, I try to inherit from multiple pod templates with "merge" strategy but I just end up with 1/5 of what I should get.

Any one from the core team aware about that? Vincent Latombe 

andoriyu@gmail.com (JIRA)

unread,
Mar 2, 2020, 3:30:03 PM3/2/20
to jenkinsc...@googlegroups.com

Thomas Ramé I ended up making a single large pod template and inherit that one instead of having neat composable templates.

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