Open keithpitt opened 8 years ago
I saw that in support, and thought "my golly, that's not a bad idea at all!". I can't think of any reasons why not!
This is a really neat idea. Has time changed your feels on it @keithpitt?
Still probably a good thing to add! Just makes working with hooks a bit easier and more explicit (instead of magical files in a folder somewhere).
Although in a new world of running stuff in Docker, I'm not sure how hooks should work in that world. Should they run inside the container? Should they run outside the container? /shurg
Although in a new world of running stuff in Docker, I'm not sure how hooks should work in that world. Should they run inside the container? Should they run outside the container? /shurg
I'd say they should behave exactly like the non-inline hooks, so they wouldn't run inside a container defined in a plugin or a command. They WOULD run in a docker container if your bootstrap was running in a container.
Yep, I don't think anything would change if you use the docker plugin!
I'm looking at the client side of this. Do these hooks override existing pipeline hooks? Or do they run in addition to? Possibly after as a new class of hook?
Currently global and local hooks run side by side, I'd imagine inline hooks perform the same way.
How do you mean side by side? They run in order, right? global, plugin, repository
, with the exception of command
and checkout
, which pick the most specific to run. Would we just be adding global, plugin, repository, inline
?
Would we just be adding global, plugin, repository, inline?
Sorry, yeah that!
Would still love to see this, it'd be amazing for prototyping and iterating on pipelines.
I think this is basically implemented by https://github.com/improbable-eng/metahook-buildkite-plugin
Except it doesn't work for checkout, which is the one I was trying to override :crying_cat_face: (https://github.com/improbable-eng/metahook-buildkite-plugin/commit/68f8f9a3e4fc381bf3c78a1485ba54937b6106f2)
Here is a proposal to have inline hooks with a build job. So currently there a few places you can have hooks:
How about we have inline hooks as well, like:
The list of hooks we could support here:
commandWhat do you think?