buildkitereporter

package
v0.0.0-...-7ae3bd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

This package provides buildkite annotations of failed tasks per buildkite job. It is primarily meant to be run directly in CI. Docs: https://buildkite.com/docs/agent/v3/cli-annotate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Option

func Option(opts ...ReporterOption) func(*taskrunner.Runtime)

func WithUpload

func WithUpload(r *reporter)

WithUpload is mutually exclusive vs WithPath. Uploads the buildkite annotation directly.

func WithWarningUpload

func WithWarningUpload(r *reporter)

WithWarningUpload is mutually exclusive vs WithPath. Uploads the buildkite annotation directly as a warning. This contrasts with WithUpload which will upload as an error.

Types

type ReporterOption

type ReporterOption func(r *reporter)

func WithMaxLines

func WithMaxLines(maxLines int) ReporterOption

WithMaxLines sets the maximum stderr lines per task in the annotation (default: 50).

func WithPath

func WithPath(path string) ReporterOption

WithPath sets a save path for the buildkite annotation (default: "taskrunner.annotation.md").

func WithStreams

func WithStreams(streams ...taskrunner.TaskLogEventStream) ReporterOption

WithStreams sets which log streams to listen to (default: stderr).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL