Create job to lock|unlock branches via Gerrit 45/6245/6
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 30 Aug 2017 21:56:55 +0000 (17:56 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 5 Sep 2017 21:07:05 +0000 (17:07 -0400)
commitdf6bd253f8332cbc9454e61f3a323e0cea2b1ebd
tree5fce74ad967a575747e5a0bc56a5a2121bc54896
parent633d8e37f1796d6a1be9c3e5ad85f0322622fe64
Create job to lock|unlock branches via Gerrit

A contributor can leave a comment "lock|unlock branch" in Gerrit comment
which triggers a job to submit a patch to Gerrit for the project to lock
or unlock their branch.

Locking refers to removing the permission to click the Submit button in
the project's branch effectively disallowing new patches to be merged
into the repo. This job simply generates and submits a patch. A project
committer still needs to approve it.

Issue: RELENG-424
Change-Id: Id489d931037c76bdcad032ec44b0ce748bdffe81
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-ciman-gerrit-branch-lock-master [new file with mode: 0644]
.jjb-test/lf-ci-jobs.yaml
jjb/lf-ci-jobs.yaml
shell/gerrit-branch-lock.sh [new file with mode: 0644]