Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joegl opened this issue Dec 8, 2023 · 0 comments
Open

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

joegl opened this issue Dec 8, 2023 · 0 comments
Labels
Support A support request

Comments

@joegl
Copy link

joegl commented Dec 8, 2023

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

  • Operating system type: [replace]
  • Operating system version: [replace]
  • BLT version: [replace]
@joegl joegl added the Support A support request label Dec 8, 2023
@github-actions github-actions bot 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support A support request
Projects
None yet
Development

No branches or pull requests

1 participant