acquia / blt

Acquia's toolset for automating Drupal 10 development, testing, and deployment.
https://docs.acquia.com/blt/
GNU General Public License v2.0
442 stars 394 forks source link

BLT-5229: How to hook into artifact:build when using deploy command #4719

Open joegl opened 7 months ago

joegl commented 7 months ago

I want to... Hook into the artifact:build command when running a deploy command.

It's not working because... When you run the deploy command, it triggers the artifact build using the class build() method (through either deployToTag() or deployToBranch()), and not by running the artifact:build command. Any command trying to hook into artifact:build never runs through a deploy command. The Acquia Documentation for extending BLT uses this hook as an example:

/**
* This will be called after the artifact:build command.
*
* @hook post-command artifact:build
*/
public function postArtifactBuild() {
   $this->doSomething();
}

Detailed error output If a BLT command is failing, run it again with the -vvv argument and post the full output here.

BLT doctor output Post the full output of blt doctor in the failing environment here.

System information