title: Atlassian Bamboo SSH task for Spring Boot
body: <p>I have several task in my plan. The latest task is running a spring boot application war on a remote Windows Server machine over ssh to start up rest web service. </p>
  
  <p>The spring boot war is starting successfully and the logs could be seen also in Bamboo. However this task never ends because it is always printing the output. I couldn't do a "fire and forget ssh task". I tried below SSH commands in SSH Task :</p>
  
  <p>1) Doesn't work : </p>
  
  <p><code>javaw -jar C:\dev\jar\myspringbootapp.war</code></p>
  
  <p>2) Works but the task never ends :</p>
  
  <pre><code>cmd /C javaw -jar C:\dev\jar\myspringbootapp.war
  </code></pre>
  
  <p>3) Works but the task never ends :</p>
  
  <p>i put the command in a batch file. SSH command is this:</p>
  
  <pre><code>cmd /C C:/dev/ftp/runjava.bat 
  </code></pre>
  
  <p>And the content of the batch file is : </p>
  
  <pre><code>@echo off
  
  javaw -jar C:\dev\jar\myspringbootapp.war &amp;
  </code></pre>