Release build fixes
- Set timeout for release build to 2 hours - this job should
never fail due to a timeout.
- Fix bug that was locking/unlocking the wrong gerrit branch
Change-Id: I66bc52b496ed1441df8279018ed79990327d4bac
diff --git a/jjb/onos/onos-release-build.sh b/jjb/onos/onos-release-build.sh
index 1c4f5c8..8d488b8 100644
--- a/jjb/onos/onos-release-build.sh
+++ b/jjb/onos/onos-release-build.sh
@@ -36,10 +36,10 @@
export WIKI_USER
# lock gerrit to prevent checkins
-ssh -p 29418 gerrit.onosproject.org projectlock lock onos master
+ssh -p 29418 gerrit.onosproject.org projectlock lock onos ${GERRIT_BRANCH}
# unlock on exit
-trap "ssh -p 29418 gerrit.onosproject.org projectlock unlock onos master" EXIT
+trap "ssh -p 29418 gerrit.onosproject.org projectlock unlock onos ${GERRIT_BRANCH}" EXIT
# get the sources
git checkout $GERRIT_BRANCH