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

Contradiction in podTemplate inheritance

    XMLWordPrintable

Details

    Description

      Hi,
      We have set up podtemplates to facilitate the writing of jenkinsfile. Developers only have to override the values ​​when needed. However, this inheritance relationship does not work as indicated in the doc. In fact, the values ​​put in the jenkinsfile do not override the values ​​in the parent podtemplate.
      In the podtemplate I defined a "main" container based on an ubuntu image. In the jenkinsfile I defined a "main" container but based on a maven image. The pod was created with ubuntu and not maven. By activating the logs (org.csanchez.jenkins.plugins.kubernetes), it seems to me that the podtemplates are reversed. Because, I see in the parent the maven image and in the podtemplate the ubuntu image (see attaced log file).

      Attachments

        Activity

          zandolsipsee Zied created issue -
          zandolsipsee Zied made changes -
          Field Original Value New Value
          Summary Contradiction in containerTemplate inheritance Contradiction in podTemplate inheritance
          vlatombe Vincent Latombe made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]
          zandolsipsee Zied made changes -
          Resolution Not A Defect [ 7 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          peterloron Peter Loron made changes -
          Priority Major [ 3 ] Blocker [ 1 ]

          People

            Unassigned Unassigned
            zandolsipsee Zied
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: