metricator/scripts/show_git_data.sh

14 lines
314 B
Bash
Raw Permalink Normal View History

2020-11-28 23:34:20 +05:00
#!/usr/bin/env bash
# Showing git data in console.
if [ -d .git ]; then
source ./scripts/shell_helpers/get_git_data.sh
else
source ./scripts/shell_helpers/get_release_data.sh
fi
2020-11-28 23:34:20 +05:00
echo "* Branch: ${BRANCHNAME}"
2020-11-28 23:34:20 +05:00
echo "* Build ID: ${BUILDID}"
echo "* Commit hash: ${COMMITHASH}"
echo "* Version: ${VERSION}"