We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec2f3c commit 27a2f2eCopy full SHA for 27a2f2e
hooks/command
@@ -5,6 +5,7 @@ set -euo pipefail
5
basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
6
7
job_name="${BUILDKITE_PIPELINE_SLUG}-${BUILDKITE_BUILD_NUMBER}-$(head -c 5 /dev/urandom | base32 | tr '[:upper:]' '[:lower:]')"
8
+echo "${job_name}" > /tmp/job_name
9
10
if [[ ${BUILDKITE_TIMEOUT:-"false"} == "false" ]]; then
11
BUILDKITE_TIMEOUT=600
hooks/pre-exit
@@ -2,7 +2,7 @@
2
3
set -euo pipefail
4
-job_name="${BUILDKITE_PIPELINE_SLUG}-${BUILDKITE_BUILD_NUMBER}-$(head -c 5 /dev/urandom | base32 | tr '[:upper:]' '[:lower:]')"
+job_name="$(cat /tmp/job_name)"
echo "--- :kubernetes: Cleanup"
0 commit comments