Using variables with a space in its name with Text File Operations plugin

19 views
Skip to first unread message

t3knoid

unread,
Oct 16, 2018, 6:56:10 PM10/16/18
to Jenkins Users
I can't seem to get access to the value of a variable with a space in its name. I am trying to use the Text File Operations plugin. I tried the following formats:

VMName,${ENV,var="Virtual Machine Name"}
VMName,${Virtual Machine Name}

I can only get this to work if I use a variable without spaces and using the second format shown above (e.g. ${VirtualMachineName}. I prefer using the space because the Jenkins uses the variable name in the GUI as well.

t3knoid

unread,
Oct 16, 2018, 10:26:58 PM10/16/18
to Jenkins Users
I printed the environment using a SET command (I'm using Windows). It shows all the environment variables with spaces just fine. In fact, when I created a batch script with references to the variables, %Virtual Machine Name% for example, it evaluates correctly. This sounds more like a bug in the Text File Operations plugin. 
Reply all
Reply to author
Forward
0 new messages