title: How to pass a jenkins build after killing the java process on remote host
body: <p>I've requirement that I need to execute java command <code>java -jar xxxx.jar</code> on a remote host. I am able to run the java job on the remote host. But After sometime I need to kill the java process. So I've created an another job which kills the java PID. It kills the java process on the remote host successfully. But the jenkins job which is running the java jar is failing</p>
  
  <pre><code>[SSH] exit-status: -1
  Build step 'Execute shell script on remote host using ssh' marked build as failure
  [BFA] Scanning build for known causes...
  [BFA] No failure causes found
  [BFA] Done. 0s
  No previous build found...
  Finished: FAILURE
  </code></pre>
  
  <p>But I'm intentionally killing the java process on the remote host. How can I pass the jenkins build. If anyone have solution, please help me with this situation. Thanks in advance. </p>