Use Zuul v3 native job for building scripts

Add a new job that builds the training-labs scripts.

Change-Id: Icdba6792861650f528a3688e9f06b3887670dc96
Needed-By: Id866646c81ccc0c89a24cea006f0df6b23756ece
This commit is contained in:
Andreas Jaeger 2017-12-26 16:25:13 +01:00
parent 7e050c9f0e
commit dadafeb7cb
2 changed files with 21 additions and 0 deletions

15
.zuul.yaml Normal file
View File

@ -0,0 +1,15 @@
- project:
name: openstack/training-labs
check:
jobs:
- training-labs-scripts
gate:
jobs:
- training-labs-scripts
- job:
name: training-labs-scripts
description: |
Build scripts for training-labs repository.
parent: unittests
run: playbooks/scripts/run.yaml

View File

@ -0,0 +1,6 @@
- hosts: all
tasks:
- name: Run tools/generate-labs
command: bash -xe tools/generate-labs '{{ zuul.branch }}'
args:
chdir: '{{ zuul.project.src_dir }}'