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

Option to expand variables in yamlFile

XMLWordPrintable

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

       

       

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

              Created:
              Updated: