[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:
parent
6d351b9067
commit
5f22823d2a
@ -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.')
|
||||
|
||||
|
@ -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"
|
@ -99,7 +99,7 @@ Methods:
|
||||
- $._environment.reporter.report($this, 'Creating "jenkins" account in Gerrit...')
|
||||
- $.createGerritAccount()
|
||||
- $.configureGerritPlugin()
|
||||
- $.gerrit.createLabelVerified()
|
||||
- $.gerrit.createLabels()
|
||||
- $._upgradeGitPlugin()
|
||||
|
||||
- $.configureUser()
|
||||
|
Loading…
Reference in New Issue
Block a user