From 337c22faaa067bc9015154a0e6c679b3ac02eeee 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 f9053caab9..b31166c84f 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."); + } } /**