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

K8s plugin: Pod Template Inheritance not working in declarative pipelines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • kubernetes-plugin: 3883.v4d70a_a_a_df034
      Jenkins: 2.375.3 (latest tag from dockerhub) installed on a K8s cluster

      I have the Jenkins installed on a K8s cluster and I have the same cluster configured as a cloud within Jenkins. The default pod template is configured in the UI (no additional container templates). I'm using declarative pipelines in a Jenkinsfile in my project repo. 

      However, when I try to add a container template using inheritance(within the declarative pipeline) to the default pod template its stuck on finding an executor. 

      Details and code samples documented in SO
      Adding container templates via yaml in declarative pipelines for k8s agents on jenkins - Stack Overflow 

      Idk if this is a bug, the doc has a similar example (it overrides something that is already in the UI pod template, I wish to merge and add a new container template). I appreciate all the insight

            Unassigned Unassigned
            samthomas Sam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: