It's perhaps more accidentally picky in some areas as a side effect of
fixing a number of other bugs. See https://github.com/gocd/gocd/pull/10625

Windows cmd is a strange thing and GoCD has some old strange workarounds
for args where spaces are detected in them. That older workaround might not
be interacting well with the changes to fix some other issues for commands
with spaces in paths.

Can you share what the exact args entries looked like from config.xml or
UI? I'd like to see exactly where the rogue space was among the args to see
if it can be addressed. Don't think there was any intention to make it more
picky, but can probably take a look at some point.

-Chad

On Tue, 29 Nov 2022, 07:15 Tsanko Stoev, <tst...@gmail.com> wrote:

> I figured it out. Apparently version 22.3 is really picky about spaces.
> The arguments section had a space after the argument which resulted in
> weird stuff happening. I guess the lesson is: be careful with spaces in the
> arguments when using a Custom Command.
> Thanks.
>
> Tsanko
>
> On Mon, Nov 28, 2022 at 4:56 PM Sriram Narayanan <sriram...@gmail.com>
> wrote:
>
>> As a temporary workaround, could you move that copy Command into a batch
>> file and verify if that works?
>>
>> Many of us follow the habit of running commands via version-controlled
>> shell scripts that are used as materials. This decouples the commands from
>> the orchestration tool, provides version control, enables us to take
>> advantage of a script file rather than just a single command, use a variety
>> of scripting languages, keep the gocd configuration focused on
>> orchestrating script execution, reduces change in the gocd configuration,
>> etc.
>>
>> So if you use a script file as a material and get it to work, please do
>> consider continuing to use the script file
>>
>> As for the reason the custom command failed, is that a custom command or
>> a task in a job? I have a vague recollection that Chad fixed some stuff
>> related to Windows paths earlier this year but he could confirm or the
>> change log could show it.
>>
>> — Sriram
>>
>> On Tue, 29 Nov 2022 at 3:54 AM, Tsanko Stoev <tst...@gmail.com> wrote:
>>
>>> Hello All,
>>>
>>> We recently upgraded to GoCD 22.3.0 and started experiencing issues with
>>> Custom Commands.
>>> Attached  is an example of a command that is failing. This is on a
>>> Windows OS. I can run the same command successfully in command prompt on
>>> the server.
>>> Thanks in advance for your help.
>>>
>>> Tsanko
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to go-cd+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/CAGWsXCAc-XKyhkzxFZ7WKrRjUD2LyN4zbmK7Vn0-8WPx7TcWWA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/go-cd/CAGWsXCAc-XKyhkzxFZ7WKrRjUD2LyN4zbmK7Vn0-8WPx7TcWWA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to go-cd+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/CANiY96arhZ%2BunE3C%2BDONuwHvHeHSsSaUmkG%3DaC%2BCdnGv-yUJxA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/go-cd/CANiY96arhZ%2BunE3C%2BDONuwHvHeHSsSaUmkG%3DaC%2BCdnGv-yUJxA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to go-cd+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAGWsXCBQubFV%3DqZJb15poXmLxyVhA6E8Jg6JrxybCVt2dVMzVA%40mail.gmail.com
> <https://groups.google.com/d/msgid/go-cd/CAGWsXCBQubFV%3DqZJb15poXmLxyVhA6E8Jg6JrxybCVt2dVMzVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH_EXrPzWV-aM9%2BU%2BPD70%3D4xgdkYFAMh5iYmW0c9K--3Tw%40mail.gmail.com.

Reply via email to