blob: 545001723d9bcd46bf225b156f710b1161ff66f4 [file] [log] [blame]
Robert Gerusf1bdb9a2019-07-21 15:24:52 +02001#!/usr/bin/env bash
Sergiusz Bazanski573da782019-06-21 19:59:52 +02002
3# This script will be run by bazel when the build process starts to
4# generate key-value information that represents the status of the
5# workspace. The output should be like
6#
7# KEY1 VALUE1
8# KEY2 VALUE2
9#
10# If the script exits with non-zero code, it's considered as a failure
11# and the output will be discarded.
12
13function rev() {
14 cd $1; git describe --always --match "v[0-9].*" --dirty
15}
16
17echo STABLE_BUILD_GERRIT-OAUTH-PROVIDER_LABEL $(rev .)
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +020018echo STABLE_GIT_COMMIT $(git rev-parse HEAD)
19echo STABLE_GIT_VERSION $(rev .)
20echo STABLE_BUILDER $(id -un)@$(hostname -f):$(pwd)