summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_lede_common.sh
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-24 18:54:27 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-25 03:10:52 +0200
commitb76b0380450d3dea77f9a8d609888caa62e423b4 (patch)
tree8a1ebdc3b121d97fcc9877eaa850fff48ef2d583 /bin/reproducible_lede_common.sh
parent883fa3b011b8fb329b73415e016f2575c4206dc9 (diff)
downloadjenkins.debian.net-b76b0380450d3dea77f9a8d609888caa62e423b4.tar.xz
reproducible_lede: collect the last git commit
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_lede_common.sh')
-rw-r--r--bin/reproducible_lede_common.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/reproducible_lede_common.sh b/bin/reproducible_lede_common.sh
index 37dda724..a4793b4b 100644
--- a/bin/reproducible_lede_common.sh
+++ b/bin/reproducible_lede_common.sh
@@ -333,6 +333,14 @@ openwrt_download() {
done
}
+openwrt_get_commit() {
+ TMPDIR=$1
+ TYPE=$2
+ cd $TMPDIR/build/source
+ git log -1
+}
+
+
openwrt_get_banner() {
TMPDIR=$1
TYPE=$2
@@ -412,6 +420,7 @@ build_two_times() {
RUN=b1
ssh $GENERIC_NODE1 reproducible_$TYPE node openwrt_build $TYPE $RUN $TARGET $CONFIG $TMPDIR
ssh $GENERIC_NODE1 reproducible_$TYPE node openwrt_get_banner $TMPDIR $TYPE > $BANNER_HTML
+ ssh $GENERIC_NODE1 reproducible_$TYPE node openwrt_get_commit $TMPDIR $TYPE > $GIT_COMMIT
# cut away everything before begin and after the end…
# (thats noise generated by the way we run this via reproducible_common.sh)
cat $BANNER_HTML | sed '/===bannerend===/,$d' | tac | sed '/===bannerbegin===/,$d' | tac > $BANNER_HTML