Hello ,
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
variables:
SSH_USER: 'appuser'
SERVER: $DEV_SERVER
MODE: 'command'
DEBUG: 'true'
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" .
thanks