From 6a16a01e93f269376c7055bbb50a07d7d328ada8 Mon Sep 17 00:00:00 2001 From: Steven Cooney Date: Wed, 5 Jun 2019 14:15:06 +0100 Subject: [PATCH] Log Successful Arc Patch Notify the build log when a patch has been applied without issues. --- .../uk/xlab/teamcity/phabricator/AgentBuildExtension.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Teamcity-Phabricator-Plugin/phabricator-plugin-agent/src/main/java/uk/xlab/teamcity/phabricator/AgentBuildExtension.java b/Teamcity-Phabricator-Plugin/phabricator-plugin-agent/src/main/java/uk/xlab/teamcity/phabricator/AgentBuildExtension.java index b88e9f0..421f575 100644 --- a/Teamcity-Phabricator-Plugin/phabricator-plugin-agent/src/main/java/uk/xlab/teamcity/phabricator/AgentBuildExtension.java +++ b/Teamcity-Phabricator-Plugin/phabricator-plugin-agent/src/main/java/uk/xlab/teamcity/phabricator/AgentBuildExtension.java @@ -98,6 +98,10 @@ public class AgentBuildExtension extends AgentLifeCycleAdapter { if (patchCode > 0) { runningBuild.stopBuild("Patch failed to apply. Check the agent output log for patch failure detals."); + return; } + + buildLogger.message(String.format(OUTPUT_PREFIX, "Patch completed")); + agentLogLogger.info("Patch completed"); } }