-
New Feature
-
Resolution: Unresolved
-
Minor
-
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: """ ... """
- is related to
-
JENKINS-53472 Expand environment variables in yaml
-
- Open
-
Agreed. Plugin is quite useless for some advanced cases without this feature. My case is I use complex kilometer yaml templates with separate docker images for each commit for tests in parallel. I wouldn't like to include 5kb yaml in each parallel step, instead of this I would like to inject env vars I need in target yaml file for each parallel step.