buildkite / agent-stack-k8s

Spin up an autoscaling stack of Buildkite Agents on Kubernetes
MIT License
79 stars 30 forks source link

fix: upload artifacts on failure #238

Closed agates4 closed 8 months ago

agates4 commented 9 months ago

Referring to #203

Changes

Admittedly not the cleanest solution, but it is a solution. The best solution would be to use an agent hook, rather than a job hook, and to provide that hook script directly into the agent container. Unfortunately, through my testing, I found that any hooks provided in the agent container will not run, unless they are the agent-shutdown or agent-startup hooks.

CC @triarius