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
This commit is contained in:
James E. Blair 2013-03-28 11:59:57 -07:00 committed by Jenkins
parent 742e9cb9cc
commit 7306065d3c
2 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,11 @@
- job:
name: 'periodic-mirror-python26'
node: mirror26
concurrent: false
triggers:
- timed: '4 21 * * *'
- zuul
builders:
- shell: |
@ -20,9 +22,11 @@
- job:
name: 'periodic-mirror-python27'
node: mirror27
concurrent: false
triggers:
- timed: '12 21 * * *'
- zuul
builders:
- shell: |

View File

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