JetBrains / teamcity-deployer-plugin

Deployer plugin for TeamCity CI server

Home Page:http://confluence.jetbrains.net/display/TW/Deployer+plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem doing an automated deploy with SSH Exec

bogdangherca opened this issue · comments

Hi guys,

I have a TC build that uses SSH Exec in the following way:

  • first it wgets a jar from arfifactory
  • then it does a java -jar <JAR_NAME> &. It's a Spring Boot project under that jar.
  • the java process starts, which is what I need

However, the build never stops, although I run the process in the background. I also tried running it with nohup and screen without success. Do you have any ideas/workarounds for this specific issue?

Thanks,
Bogdan.

Solved. Apparently, the output of app server process should be redirected to /dev/null or a specific file, anything but STDOUT. Otherwise, the SSH executor will keep collecting output and never exit.

I would like this type of thing to be present or explained somewhere in the docs.

Bogdan.