[JIRA] (JENKINS-53094) Option to expand variables in yamlFile

4 views
Skip to first unread message

gintautas.sulskus@gmail.com (JIRA)

unread,
Aug 17, 2018, 8:55:03 AM8/17/18
to jenkinsc...@googlegroups.com
Gintautas Sulskus created an issue
 
Jenkins / New Feature JENKINS-53094
Option to expand variables in yamlFile
Issue Type: New Feature New Feature
Assignee: Carlos Sanchez
Components: kubernetes-plugin
Created: 2018-08-17 12:54
Priority: Minor Minor
Reporter: Gintautas Sulskus

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

 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

support@4play.by (JIRA)

unread,
Nov 8, 2018, 8:21:02 AM11/8/18
to jenkinsc...@googlegroups.com
Oleg Gumbar commented on New Feature JENKINS-53094
 
Re: Option to expand variables in yamlFile

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.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

marc.deleenheer@robovision.eu (JIRA)

unread,
Feb 27, 2019, 5:02:03 PM2/27/19
to jenkinsc...@googlegroups.com

Yes would love to see this feature! Including  yaml in the jenkinsfile is very inconvenient.

jglick@cloudbees.com (JIRA)

unread,
Jul 16, 2019, 3:43:45 PM7/16/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
 
Change By: Jesse Glick
Assignee: Carlos Sanchez

wilkinsonjulian@gmail.com (JIRA)

unread,
Apr 23, 2020, 2:41:02 PM4/23/20
to jenkinsc...@googlegroups.com
Julian Wilkinson commented on New Feature JENKINS-53094
 
Re: Option to expand variables in yamlFile

Yeah... this would make declarative jenkinsfiles a lot cleaner  +1

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

wilkinsonjulian@gmail.com (JIRA)

unread,
Apr 23, 2020, 2:46:03 PM4/23/20
to jenkinsc...@googlegroups.com
Julian Wilkinson edited a comment on New Feature JENKINS-53094
Yeah... this would make declarative jenkinsfiles a lot cleaner :) +1
+ I don't think it's uncommon to need to use a value from previous stages in new pods
Reply all
Reply to author
Forward
0 new messages