Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
regressions: make gitbranch and git revision visible
Browse files Browse the repository at this point in the history
Git branch and commit hash are now also  visible in the
CMake Ctest Dashboard by putting the info into
Site and BuildName columnds like this:

Site: @os@-@GitBranch@
BuildName: @Bversion@-@bdate@-@db_type@-@gitrev@
  • Loading branch information
pstorz committed Dec 23, 2017
1 parent 81fc24c commit 6680661
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DartConfiguration.tcl.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SourceDirectory: @srcdir@
BuildDirectory: @regressdir@
Site: @sitename@
BuildName: @bversion@-@bdate@-@db_type@-@os@
Site: @os@-@gitbranch@
BuildName: @bversion@-@bdate@-@db_type@-@gitrev@
DropMethod: http
DropSite: regress.bareos.org
DropLocation: /submit.php?project=bareos
Expand Down
11 changes: 11 additions & 0 deletions scripts/create_sed
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ if [ -r ${srcdir}/src/include/version.h ]; then
bversion=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/include/version.h`
bdate=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/include/version.h`
fi

if git --version >/dev/null; then
pushd ${srcdir}
gitbranch=`git rev-parse --abbrev-ref HEAD`
gitrev=`git rev-parse --short HEAD`
popd
fi

builddir="${src}"
hostname="${hostname:-$HOST}"

Expand Down Expand Up @@ -93,3 +101,6 @@ echo "s%@builddir@%${builddir}%g" >>${out}
echo "s%@BUILD_DIR@%${builddir}%g" >>${out}
echo "s%@confdir@%${confdir}%g" >>${out}
echo "s%@uncomment_dbi@%#%g" >>${out}
echo "s%@gitbranch@%${gitbranch}%g" >>${out}
echo "s%@gitrev@%${gitrev}%g" >>${out}

0 comments on commit 6680661

Please sign in to comment.