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

Set default Buildkit output mode to plain #281

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hooks/pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -ueo pipefail

# If they're using Buildkit, make sure it doesn't output the '---' lines that
# mess up Buildkite's log output grouping
export BUILDKIT_PROGRESS=plain
13 changes: 13 additions & 0 deletions tests/pre-command.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bats

load '/usr/local/lib/bats/load.bash'

@test "Pre-command sets Buildkit to use plain output" {
BUILDKIT_PROGRESS=

source "$PWD/hooks/pre-command"

assert_equal "plain" "${BUILDKIT_PROGRESS}"

unset BUILDKIT_PROGRESS
}