Custom Command

25 views
Skip to first unread message

Adrian Ziberi

unread,
Jul 10, 2019, 2:52:25 AM7/10/19
to go-cd
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!
sssss.png

Akshay Dewan

unread,
Jul 10, 2019, 7:57:32 AM7/10/19
to go...@googlegroups.com
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 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.

--
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+un...@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.
For more options, visit https://groups.google.com/d/optout.


--
Akshay Dewan
Phone: +91 99201 57907
ThoughtWorks
Reply all
Reply to author
Forward
0 new messages