title: Deploy Jar to remote server from Jenkins Build Job
body: <p>I currently have a Jenkins job that does the following successfully:</p>
  
  <p>1: Check for new commits in git repo ✓<br/>
  2: clone repo ✓<br/>
  3: Build repo jar with maven ✓<br/>
  4: scp jar to remote server ✓<br/></p>
  
  <p>The 5th step is to run the jar, I am currently doing something like:</p>
  
  <pre><code>nohup ssh user@remotehost "java -jar some.jar" &gt; /dev/null 2&gt;&amp;1 
  </code></pre>
  
  <p>This works technically, it will run the jar, however the jenkins job is not finishing, I assume it is waiting for an exit code.</p>
  
  <p>What I wish to achieve is, fire a command to a remote server over ssh without waiting for a response or output. I'm not sure if this is possible, is there a better way to do this?</p>