Revision 98fa7aee3f36e50a416823764564ca5adcb7c39d authored by Grot (@grafanabot) on 08 May 2023, 13:26:22 UTC, committed by GitHub on 08 May 2023, 13:26:22 UTC
Docs: Adds preview notification template docs (#67903)

Adds preview notification template

(cherry picked from commit 6464ce0239843aa3c5abbd32d5bdf8ecc63db5f8)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
1 parent 8c2a741
Raw File
ci-job-succeeded.sh
#!/bin/bash

# shellcheck source=./scripts/helpers/exit-if-fail.sh
source "$(dirname "$0")/helpers/exit-if-fail.sh"

echo -e "Report build times and build outcome"

start=$GF_JOB_START
runtime=$((($(date +%s%N) - start)/1000000))

echo -e "The job $CIRCLE_JOB took $runtime (ms)"

if [ "${CIRCLE_BRANCH}" == "main" ]; then
exit_if_fail ./scripts/ci-metrics-publisher.sh "grafana.ci-buildtimes.$CIRCLE_JOB=$runtime"
exit_if_fail ./scripts/ci-metrics-publisher.sh "grafana.ci-buildoutcome.$CIRCLE_JOB=1"
fi
back to top