Skip to content

Instantly share code, notes, and snippets.

@yob
Last active December 4, 2020 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yob/01411b59f62526171494c20b97936fad to your computer and use it in GitHub Desktop.
Save yob/01411b59f62526171494c20b97936fad to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ux
mkdir -p logs
buildkite-agent artifact search "*" -format "%j %p %c %s %S\\n"
buildkite-agent artifact download --step ":rspec: 0" logs/the-time.txt logs
shasum -a 1 logs/the-time.txt
steps:
- label: ":rspec: %n"
command: "run.sh"
parallelism: 2
artifact_paths: "logs/*.txt;out/*.apk"
- wait
- command: "download.sh"
#!/bin/bash
set -ux
mkdir -p logs
date >> logs/the-time.txt
if [[ "$BUILDKITE_RETRY_COUNT" == "0" ]]; then
exit 1
else
exit 0
fi
buildkite-agent pipeline upload pipeline.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment