代码拉取完成,页面将自动刷新
#!/bin/bash
ROOT="$(pwd)"
if BUILD_GIT_REVISION=$(git rev-parse HEAD 2> /dev/null); then if ! git diff-index --quiet HEAD; then BUILD_GIT_REVISION=${BUILD_GIT_REVISION}"-dirty"
fi
else
BUILD_GIT_REVISION=unknown
fi
# Check for local changes
if git diff-index --quiet HEAD --; then
tree_status="Clean"
else
tree_status="Modified"
fi
# Check for git branch and git dirty
BRANCH=$(git rev-parse --abbrev-ref HEAD)
GIT_DIRTY=$(git diff --no-ext-diff 2> /dev/null | wc -l)
# XXX This needs to be updated to accommodate tags added after building, rather than prior to builds
RELEASE_TAG=$(git describe)
# security wanted VERSION='unknown'
VERSION="${BUILD_GIT_REVISION}"
if [[ -n "${RELEASE_TAG}" ]]; then
VERSION="${RELEASE_TAG}"
fi
# used by core/version
echo buildVersion "${VERSION}"
echo buildGitRevision "${BUILD_GIT_REVISION}"
echo buildUser "$(whoami)"
echo buildHost "$(hostname -f)"
echo buildStatus "${tree_status}"
echo buildTime "$(date +%Y-%m-%d--%T)"
echo buildBranch "${BRANCH}"
echo buildGitDirty "${GIT_DIRTY}"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。