Discussion:
Using variables with a space in its name with Text File Operations plugin
t3knoid
2018-10-16 22:56:10 UTC
Permalink
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.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2c4a2a5e-c171-4e2d-b76e-3896a5dbc837%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t3knoid
2018-10-17 02:26:58 UTC
Permalink
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.
Post by t3knoid
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
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.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/113b2c1f-b8d2-4709-95ba-c1caae40bebe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for 'Using variables with a space in its name with Text File Operations plugin' (Questions and Answers)
9
replies
What is a torrent and how do I use one?
started 2006-08-24 19:27:54 UTC
internet
Loading...