following is my simple deployment step in pipelines. i have also disabled password prompt for this command in visudo file.
- pipe: atlassian/ssh-run:0.1.4
COMMAND: 'sudo pm2 restart app.js'
this hangs at the following line in the console.
ssh -A -tt -i /root/.ssh/pipelines_id -o StrictHostKeyChecking=no -p 22 appuser@<ip-address> sudo pm2 restart app.js
looks like something going with ==> "sudo" .
Hi @Gangadhar Mamillapalli . I don't thinks running a command with sudo should affect the execution of the pipe. I would suggest checking if there are issues with the pm2, maybe there are to many processes running or something like that. Can you try to login you your server and run the same command manually?
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events