diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-03-29 14:12:28 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-03-29 16:40:40 +0000 |
commit | cffe1022b520fe7273ee949935a23eb202a9890e (patch) | |
tree | 14b76c809e51bd4d825337f1b642162118adfc21 /ttcn3-mgw-test/Dockerfile | |
parent | 2e3a5c1c530306f3c9b10311edda606768fc83ed (diff) |
print branch name and git commit hash during docker container build
This is quite useful when looking at jenkins logs to know which exact
version was built at the time.
Change-Id: Id52c382b454e2beecf46820752aeff15b2c1a0ae
Diffstat (limited to 'ttcn3-mgw-test/Dockerfile')
-rw-r--r-- | ttcn3-mgw-test/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ttcn3-mgw-test/Dockerfile b/ttcn3-mgw-test/Dockerfile index e2327b7..bf13d12 100644 --- a/ttcn3-mgw-test/Dockerfile +++ b/ttcn3-mgw-test/Dockerfile @@ -14,6 +14,7 @@ ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/comm RUN cd osmo-ttcn3-hacks && \ git fetch && \ git checkout -f -B $OSMO_TTCN3_BRANCH origin/$OSMO_TTCN3_BRANCH && \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ make mgw VOLUME /data |