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

buildkite-agent env has --from-env-file and --print flags #1803

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 26, 2022

  1. buildkite-agent env has --from-env-file (bool) and --print NAME flags

    This solves the problem of safely parsing BUILDKITE_ENV_FILE, and allows
    for usage like this in a pre-command hook or similar:
    
        local branch
        branch="$(buildkite-agent env --from-env-file --print BUILDKITE_BRANCH)"
        if [[ branch != "main" ]]; then
            echo "This agent only builds branch 'main'"
            exit 42
        fi
    pda committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    a5cc6a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2022

  1. Configuration menu
    Copy the full SHA
    9b7bf9d View commit details
    Browse the repository at this point in the history