Option to expand variables in yamlFile

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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: """
         ...
       """

       

       

            Assignee:
            Unassigned
            Reporter:
            Gintautas Sulskus
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: