[TASK] bamboo: Hard kill php web server processes 14/56014/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 5 Mar 2018 15:39:40 +0000 (16:39 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 5 Mar 2018 16:13:42 +0000 (17:13 +0100)
bamboo acceptance test shut down sometimes fails to stop
the 'php -S' web server process for unknown reasons.
A next job on the same agent then fails to bind to the
port, leading to broken builds.
Switch from SIGTERM to SIGKILL during test shut down
to see if that improves the situation.

Resolves: #84143
Releases: master, 8.7
Change-Id: I838a2341f1f8e25fa461b8747337406391b52241
Reviewed-on: https://review.typo3.org/56014
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Build/bamboo/src/main/java/core/AbstractCoreSpec.java

index 50c261c..8b04201 100644 (file)
@@ -818,7 +818,7 @@ abstract public class AbstractCoreSpec {
             .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
             .inlineBody(
                 this.getScriptTaskBashInlineBody() +
-                "kill `cat phpserver.pid`\n" +
+                "kill -9 `cat phpserver.pid`\n" +
                 "kill `cat chromedriver.pid`\n"
             );
     }