Skip to content

Commit

Permalink
Upload logs to buildkite even on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
favilo committed Mar 21, 2024
1 parent 611d2df commit 8d649fe
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .buildkite/it/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -eo pipefail

source .buildkite/retry.sh

function upload_logs {
echo "--- Upload artifacts"
buildkite-agent artifact upload "${RALLY_HOME}/.rally/logs/*.log"
}

export TERM=dumb
export LC_ALL=en_US.UTF-8
export TZ=Etc/UTC
Expand Down Expand Up @@ -44,8 +49,8 @@ export LC_ALL=en_US.UTF-8
source .venv/bin/activate

pip install nox
nox -s "it-${PYTHON_VERSION}"

echo "--- Upload artifacts"
trap upload_logs ERR
nox -s "it-${PYTHON_VERSION}"

buildkite-agent artifact upload "${RALLY_HOME}/.rally/logs/*.log"
upload_logs

0 comments on commit 8d649fe

Please sign in to comment.