• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      Would it make sense to introduce an option to expand groovy variables in the supplied yamlFile? 

      pipeline {
          agent {
              kubernetes {
                  label 'mypod'
                  defaultContainer 'jnlp'
                  yamlFile 'KubernetesPod.yaml'
              }
          }
          stages {
              ...
          }
      }

       

      Variable expansion works fine with the inline parameter

       

       yaml: """
         ...
       """

       

       

          [JENKINS-53094] Option to expand variables in yamlFile

          Gintautas Sulskus created issue -
          Carlos Sanchez made changes -
          Link New: This issue is related to JENKINS-53472 [ JENKINS-53472 ]
          Jesse Glick made changes -
          Assignee Original: Carlos Sanchez [ csanchez ]

            Unassigned Unassigned
            ginsul Gintautas Sulskus
            Votes:
            8 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: