Skip to content

Commit

Permalink
Fixes acquia#2723: Skip execution of post-code-deploy hook for ACSF b…
Browse files Browse the repository at this point in the history
…uilds.
  • Loading branch information
malikkotob committed Apr 19, 2018
1 parent 122d3b7 commit 337c22f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Robo/Commands/Artifact/AcHooksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

/**
Expand Down

0 comments on commit 337c22f

Please sign in to comment.