commit | c387a5043e9db2ec87699ea5fd2b08b40d12e882 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jkt@kde.org> | Mon Dec 01 18:39:07 2014 +0100 |
committer | Jan Kundrát <jkt@kde.org> | Mon Dec 01 18:39:07 2014 +0100 |
tree | adcc92f1c5b2616dc464a81d545905736a2fbb0d | |
parent | 186a1d5261a61d16df2210bbfb29a999f3369cf8 [diff] |
Fix passing labels to Gerrit when they are not defined in All-Projects Turns out that the shortcut --verified or --code-review only work when these labels are defined globally for all projects [1]. The other syntax with a --label works fine even when e.g. the Verified label is being used just for a subset of projects. [1] https://gerrit-review.googlesource.com/#/c/51800/1/Documentation/cmd-review.txt Change-Id: Ib591997141b68708bee0b291bb88a93cd3294301
diff --git a/zuul/lib/gerrit.py b/zuul/lib/gerrit.py index 799459d..6740021 100644 --- a/zuul/lib/gerrit.py +++ b/zuul/lib/gerrit.py
@@ -120,7 +120,7 @@ if v is True: cmd += ' --%s' % k else: - cmd += ' --%s %s' % (k, v) + cmd += ' --label %s=%s' % (k, v) cmd += ' %s' % change out, err = self._ssh(cmd) return err