aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-bts-test/Dockerfile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-29 14:12:28 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-29 16:40:40 +0000
commitcffe1022b520fe7273ee949935a23eb202a9890e (patch)
tree14b76c809e51bd4d825337f1b642162118adfc21 /ttcn3-bts-test/Dockerfile
parent2e3a5c1c530306f3c9b10311edda606768fc83ed (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-bts-test/Dockerfile')
-rw-r--r--ttcn3-bts-test/Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/ttcn3-bts-test/Dockerfile b/ttcn3-bts-test/Dockerfile
index 1f5b47c..d8969bb 100644
--- a/ttcn3-bts-test/Dockerfile
+++ b/ttcn3-bts-test/Dockerfile
@@ -17,6 +17,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 deps-update bts
VOLUME /data