system-config/modules/openstack_project/files/zuul/openstack_functions.py
James E. Blair 7306065d3c Fix mirror build jobs.
The job name matched the python27 functions regex, but as a post job,
it has no change/branch object.  Make the function safe for post jobs.

Configure them to also be triggerable by zuul (the timer still works
because all zuul variables are ignored).

Configure them to not run concurrently (there's only one matching
executor so it shouldn't be a problem, but be explicit) since they
share an output location.

Change-Id: I210da46bac1a8fa5ac9a931f07f189b3734b2ab0
Reviewed-on: https://review.openstack.org/25646
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-28 19:57:52 +00:00

9 lines
288 B
Python

def devstack_params(change, params):
if change.branch == 'stable/diablo':
params['NODE_LABEL'] = 'devstack-oneiric'
def python27_params(change, params):
if (hasattr(change, 'branch') and
change.branch == 'stable/diablo'):
params['NODE_LABEL'] = 'oneiric'