Hi Adrian,

You can use whatever script/language or executable you want (bash, python,
powershell, gradle, maven, node etc.), as long as it is available on the Go
Agent.

Internally, GoCD tasks are executed using the exec
<https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exec(java.lang.String[],%20java.lang.String[],%20java.io.File)>
API in java. Note that running bash -c "export FOO=bar" and bash -c "echo
$FOO" in different tasks will not work as expected, because each task will
run in a different process. In such cases, you can wrap your task into a
shell script and execute it.

Hope that helps.

On Wed, Jul 10, 2019 at 12:22 PM Adrian Ziberi <ziberi.adr...@gmail.com>
wrote:

> Hi!
> I m new on  using GoCD (since yesterday).
> Which scripting language schould i use for "CUSTOM COMMAND".What kind of
> Commands , is there any list of them?
> Thnx!
>
> --
> 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/7b19baab-1321-4066-88b5-673ddf25b2aa%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/7b19baab-1321-4066-88b5-673ddf25b2aa%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Akshay Dewan
Phone: +91 99201 57907
ThoughtWorks

-- 
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/CANt_620NY%3DftM9_WyL-2--res2ZYS0zLuwCj-Jzp1vx%3D4Gbe4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to