Hi,
As part of my deployment pipeline I want to stop and start one of my apps, this has to be done by a specific account.
I have setup ssh connection from go to the server, and set a task in my pipeline to ssh and run the script.
Outside of go this is working perfectly, ie from the server if I
ssh <user>@<server> 'path/to/script'
I will connect to <server> as <user> and the script is executed without any problem.
However if I set this up within Go (Enterprise edition 2.2 on Red Hat Linux) the task fails with the error
bash 'path/to/script' : No such file or directory
I'm at my wits end as to what's going on. Any ideas?
Steve
Comments
2 comments
Hi Steve,
Could you share the agent log and your XML configuration? We can take a look at it to help troubleshoot.
Hi Anush,
I think I may have cracked it. The command line requires the script to be enclosed within ' ' , however removing these from the pipeline definition and the script's getting called. It's almost as if Go appends an addition set of ' '.
I'll confirm later on when I'm 100% happy. Or send the log files as requested.
Steve
Please sign in to leave a comment.