zuul-jobs/zuul.d/project-templates.yaml
Saul Wold 057693fe37 Add Ansible Playbook to build specfiles via Zuul
This initial playbook and roles builds both CentOS and openSUSE
specfiles. The build occurs on OBS and is currently done in a
sandbox area in my home project [0]. The job currently just
starts the OBS job, it does not currently check the build
results, this will come later.

This has been tested with fault so far. The zuul template will
be added to each repo as specfiles are updated.

Added support to automagically build _service files.

[0] https://build.opensuse.org/project/subprojects/home:saulwold

zuul.d/projects needs to use the stx-zuul-jobs-linters to set
ANSIBLE_ROLES_PATH correctly

Change-Id: I6490030894b5887f33a55b1e66e374bcd50960d5
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-09-03 15:35:39 -07:00

72 lines
1.6 KiB
YAML

- project-template:
name: stx-api-ref-jobs
description: |
Build and publish api-ref document for StarlingX.
check:
jobs:
- build-openstack-api-ref:
files: &api-ref-triggers
- ^os_api_ref/.*
- ^api-ref/.*
- ^doc/api_samples/.*
- bindep.txt
- doc/requirements.txt
- test-requirements.txt
- tox.ini
gate:
jobs:
- build-openstack-api-ref:
files: *api-ref-triggers
promote:
jobs:
- promote-stx-api-ref:
files: *api-ref-triggers
- project-template:
name: publish-stx-docs
description: |
Runs and publishes documentation to StarlingX site.
check:
jobs:
- openstack-tox-docs
gate:
jobs:
- openstack-tox-docs
promote:
jobs:
- promote-stx-tox-docs
- project-template:
name: stx-release-notes-jobs
description: |
Runs the release notes test and publish jobs for StarlingX.
check:
jobs:
- build-openstack-releasenotes
gate:
jobs:
- build-openstack-releasenotes
post:
jobs:
- publish-stx-releasenotes
- project-template:
name: stx-lint-specfile-jobs
description: |
Lint RPM Specfiles for syntax and correctness
check:
jobs:
- stx-check-specfile:
voting: false
- project-template:
name: stx-build-rpms
description: |
Buiild RPMs via Ansible Playbook and OBS
check:
jobs:
- stx-obs-build-centos:
voting: false
- stx-obs-build-opensuse:
voting: false