I am trying to start a Powershell script in remote windows 2012 server with Bitvise. The script has the command to start a spring boot application.
start "MyApp" java -jar myapp.jar
Bamboo Job triggers the script using SSH task and based on the logs, the jar is executed and the application is up. However, as soon as the bamboo job completes, the application goes down. Is there a way to keep this application running even after the job completes?
Note: I tried running a bat file instead of PowerShell and in that case the bamboo job simply never completes and if the job is manually stopped the application goes down in the server.