summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-12-07 14:11:05 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-07 15:51:29 +0100
commit7f8026443d2457f5a2108cdffefcd5bdba8c06b6 (patch)
tree3f38c80d8bc5e0500000777f9f736eea6a7f3519
parentf48938b80d93ed14b8bf9e2992cc15ab9d596fe4 (diff)
downloadjenkins.debian.net-7f8026443d2457f5a2108cdffefcd5bdba8c06b6.tar.xz
openwrt: implement OPENWRT_GIT_BRANCH
choose the branch for the git checkout
-rwxr-xr-xbin/reproducible_openwrt.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index c42d1525..d70bd8d7 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -5,6 +5,7 @@
# released under the GPLv=2
OPENWRT_GIT_REPO=git://git.openwrt.org/openwrt.git
+OPENWRT_GIT_BRANCH=master
DEBUG=false
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
@@ -165,6 +166,7 @@ echo "$(date -u) - Cloning OpenWrt git repository."
echo "============================================================================="
git clone --depth 1 $OPENWRT_GIT_REPO openwrt
cd openwrt
+git checkout $OPENWRT_GIT_BRANCH
OPENWRT="$(git log -1)"
OPENWRT_VERSION=$(git describe --always)
echo "This is openwrt $OPENWRT_VERSION."