You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 classbuild() 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
Operating system type: [replace]
Operating system version: [replace]
BLT version: [replace]
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
How to hook into artifact:build when using deploy command
BLT-5229: How to hook into artifact:build when using deploy command
Dec 8, 2023
I want to...
Hook into the
artifact:build
command when running adeploy
command.It's not working because...
When you run the
deploy
command, it triggers the artifact build using the classbuild()
method (through eitherdeployToTag()
ordeployToBranch()
), and not by running theartifact:build
command. Any command trying to hook intoartifact:build
never runs through adeploy
command. The Acquia Documentation for extending BLT uses this hook as an example: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
The text was updated successfully, but these errors were encountered: