From b625c326cd977c5a4ddbeb195ab309369f7f7c1d Mon Sep 17 00:00:00 2001 From: Malik Kotob Date: Thu, 19 Apr 2018 12:24:08 -0400 Subject: [PATCH] Fixes #2723: Skip execution of post-code-deploy hook for ACSF builds. --- src/Robo/Commands/Artifact/AcHooksCommand.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Robo/Commands/Artifact/AcHooksCommand.php b/src/Robo/Commands/Artifact/AcHooksCommand.php index f9053caab..b31166c84 100644 --- a/src/Robo/Commands/Artifact/AcHooksCommand.php +++ b/src/Robo/Commands/Artifact/AcHooksCommand.php @@ -33,7 +33,12 @@ class AcHooksCommand extends BltTasks { * @command artifact:ac-hooks:post-code-deploy */ public function postCodeDeploy($site, $target_env, $source_branch, $deployed_tag, $repo_url, $repo_type) { - $this->postCodeUpdate($site, $target_env, $source_branch, $deployed_tag, $repo_url, $repo_type); + if (!$this->getInspector()->isAcsfInited()) { + $this->postCodeUpdate($site, $target_env, $source_branch, $deployed_tag, $repo_url, $repo_type); + } + else { + $this->say("ACSF build detected. Skipped execution of post-code-deploy cloud hook."); + } } /**