I had been using a "text" field to put in my path "/builds/weekly/" into my variable for a shell script, which works just fine.
I converted the same field to a "menu" parameter, with the "/builds/weekly/, WeeklyBuild" (sans parentheses of course) as the one of two entries in the file referenced by the menu parameter. Sadly, this syntax passed in the comma as well.
I then tried without the comma, (a space is apparently a delimiter as well) and found that the string appeared correct when using "echo $pathname is the Path", on screen at least.
However, this isn't true when passing the data into a shell script. There must be unprintable characters appended, as my ant script fails during an FTP task, even though it worked as a "text" field previously moments before.
I will be trying to use "menu" without the "variable_value Text_to_display_in_menu" format, and just show the raw paths instead. I am suspecting this will work properly.
It's very odd, as the logs show it as targeting the right server and path, yet "0 files found" - change it back to a text field, and it works on the first try. Something about the "menu" parameter is just not passing the data verbatim.
Log in to post a comment.