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

Multiple inheritFrom templates ignored in declarative pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Jenkins ver. 2.197
      Plugin version: 1.20.0

      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.

       

            Unassigned Unassigned
            andoriyu Andrey Cherkashin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: