Skip to content

Add a bool env var for when job times out #3592

@jumbosushi

Description

@jumbosushi

Is your feature request related to a problem? Please describe.
During the post-command hook, I would like a way to determine if the job timeout (from the job-level timeout, not a command-specific timeout). One use case is changing the build annotation content based on job termination reason which isn't too clear based on exit codes.

Describe the solution you'd like
Ideally it would be something like BUILDKITE_JOB_TIMED_OUT. Would love to see something like #3213

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions