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 <[email protected]> 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 <[email protected]> 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 [email protected]. >> 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 [email protected]. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAGWsXCBQubFV%3DqZJb15poXmLxyVhA6E8Jg6JrxybCVt2dVMzVA%40mail.gmail.com.
