Running C# console application on Linux from GoCD

20 views
Skip to first unread message

Aditya Manocha

unread,
Dec 18, 2019, 7:28:24 AM12/18/19
to go-cd
Hi,

I have setup a pipeline with shell command job as

-c
cd /path/to/my/csharp-app/publish/
./appname

The application fails to execute. When I run directly from the path it works fine.
I am new to GoCD am I missing something?

Alternatively, I tried running the C# application from a shell script run.sh
The command I gave inside run.sh was 
./appname

When I run the shell script directly from the path (./run.sh) it works but from GoCD it doesn't.

It shows passed in GoCD but application doesn't fire up neither the script fires up.

Please help!

Thanks!

Regards,
Aditya

Pranav Aggarwal

unread,
Dec 18, 2019, 8:07:50 AM12/18/19
to go...@googlegroups.com
You may try:
cd /path/to/my/csharp-app/publish/;  ./appname

--
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/803545df-c65d-4302-8097-34342be87363%40googlegroups.com.

Aditya M

unread,
Dec 18, 2019, 9:21:38 AM12/18/19
to go-cd
Thanks a lot Pranav! This worked.
Could you please explain how adding a semi colon and using a single line helped?

Thanks once again.

Regards,
Aditya


On Wednesday, 18 December 2019 18:37:50 UTC+5:30, Pranav Aggarwal wrote:
You may try:
cd /path/to/my/csharp-app/publish/;  ./appname

On Wed, 18 Dec. 2019, 11:28 pm Aditya Manocha, <aditya...@gmail.com> wrote:
Hi,

I have setup a pipeline with shell command job as

-c
cd /path/to/my/csharp-app/publish/
./appname

The application fails to execute. When I run directly from the path it works fine.
I am new to GoCD am I missing something?

Alternatively, I tried running the C# application from a shell script run.sh
The command I gave inside run.sh was 
./appname

When I run the shell script directly from the path (./run.sh) it works but from GoCD it doesn't.

It shows passed in GoCD but application doesn't fire up neither the script fires up.

Please help!

Thanks!

Regards,
Aditya

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages