I have bash script which executes following
nohup ws --port 8080 &
when executing that script directly on remote server and closing connection - process still exists. But when i am using Jenkins "SSH plugin" - process stops after Jenkins closes connection. To execute that script i am using simple command sh scriptName.sh