[Gerrit] Adding a new label - 'Workflow'

* label 'Workflow' is required by Zuul for launching gate pipeline
 * Zuul should be able to vote Verified +2 as a response to successful
   gate pipeline (extending Verified label by -2..+2)
 * The change requires merging https://review.fuel-infra.org/#/c/22331/

Change-Id: Ie0ec110f09edf0069b6754f123e66f9532cfd937
This commit is contained in:
Nikolay Mahotkin 2016-06-21 17:14:56 +03:00
parent 6d351b9067
commit 5f22823d2a
3 changed files with 15 additions and 7 deletions

View File

@ -196,13 +196,13 @@ Methods:
name => $name))
- $.instance.agent.call($template, $resources)
createLabelVerified:
createLabels:
Body:
- $._environment.reporter.report($this, 'Creating label "Verified" in Gerrit...')
- $linux: new(conf:Linux)
- $resource: new(sys:Resources)
- $script: $resource.string('create_verified.sh')
- $script: $resource.string('create_gerrit_labels.sh')
- $linux.runCommand($.instance.agent, $script)
- $._environment.reporter.report($this, 'Label "Verified" is successfully created.')

View File

@ -25,10 +25,18 @@ fi
cat >> project.config << CONFIG
[label "Verified"]
function = MaxWithBlock
value = -1 Fails
value = 0 No score
value = +1 Verified
function = MaxWithBlock
value = -2 Fails
value = -1 Doesn't seem to work
value = 0 No score
value = +1 Works for me
value = +2 Verified
[label "Workflow"]
function = MaxWithBlock
value = -1 Work in progress
value = 0 Ready for reviews
value = +1 Approved
CONFIG
git commit -am "Adding label 'Verified' to All-projects"

View File

@ -99,7 +99,7 @@ Methods:
- $._environment.reporter.report($this, 'Creating "jenkins" account in Gerrit...')
- $.createGerritAccount()
- $.configureGerritPlugin()
- $.gerrit.createLabelVerified()
- $.gerrit.createLabels()
- $._upgradeGitPlugin()
- $.configureUser()