Put blueprint updates into production.
Call the blueprint update script from the patchset created hook. Add blueprint comment links. Also, add changeid comment links. This change depends on I62f965ca7f14f589e3b299ea46729efb68abd06f in openstack-ci. Change-Id: I62b0644ffea4b4d7f5a3407fc9e776b28e200278 Reviewed-on: https://review.openstack.org/254 Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
184a7cd25a
commit
92f82238bc
3
modules/gerrit/files/patchset-created
Executable file
3
modules/gerrit/files/patchset-created
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
python ~/openstack-ci/gerrit/update_blueprint.py patchset-created "$@"
|
@ -2,9 +2,19 @@ class gerrit($canonicalweburl='',
|
||||
$openidssourl="https://login.launchpad.net/+openid",
|
||||
$email='',
|
||||
$github_projects = [],
|
||||
$commentlinks = [ { name => 'launchpad',
|
||||
$commentlinks = [ { name => 'changeid',
|
||||
match => '(I[0-9a-f]{8,40})',
|
||||
link => '#q,$1,n,z' },
|
||||
|
||||
{ name => 'launchpad',
|
||||
match => '([Bb]ug|[Ll][Pp])\\s*[#:]?\\s*(\\d+)',
|
||||
link => 'https://code.launchpad.net/bugs/$2' } ]
|
||||
link => 'https://code.launchpad.net/bugs/$2' },
|
||||
|
||||
{ name => 'blueprint',
|
||||
match => '([Bb]lue[Pp]rint|[Bb][Pp])\\s*[#:]?\\s*(\\S+)',
|
||||
link => 'https://blueprints.launchpad.net/openstack/?searchtext=$2' },
|
||||
|
||||
]
|
||||
) {
|
||||
|
||||
package { "python-dev":
|
||||
@ -77,6 +87,15 @@ $commentlinks = [ { name => 'launchpad',
|
||||
replace => 'true',
|
||||
}
|
||||
|
||||
file { '/home/gerrit2/review_site/hooks/patchset-created':
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 555,
|
||||
ensure => 'present',
|
||||
source => 'puppet:///modules/gerrit/patchset-created',
|
||||
replace => 'true',
|
||||
}
|
||||
|
||||
} else {
|
||||
notice('Gerrit is not installed')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user