Adrian Brandemuehl | 2ed7435 | 2017-08-23 20:29:57 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
Brian Silverman | 1e5cc02 | 2018-02-03 22:59:48 -0500 | [diff] [blame] | 3 | set -x |
Adrian Brandemuehl | 2ed7435 | 2017-08-23 20:29:57 -0700 | [diff] [blame] | 4 | |
Austin Schuh | 47d8bef | 2020-08-26 21:54:38 -0700 | [diff] [blame] | 5 | # No need to pass this through. It hurts caching. |
| 6 | unset SSH_AUTH_SOCK |
| 7 | |
Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 8 | if [ -n ${BUILDKITE+x} ]; then |
| 9 | buildkite-agent pipeline upload tools/ci/buildkite.yaml |
| 10 | exit 0 |
| 11 | fi |
| 12 | |
James Kuszmaul | bc02ff4 | 2021-01-15 20:41:30 -0800 | [diff] [blame^] | 13 | echo "This script should only be run from buildkite." |
| 14 | exit 1 |