zuul-jobs/zuul.d/jobs.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

37 lines
1.1 KiB
YAML

- job:
name: stx-zuul-jobs-linters
parent: openstack-zuul-jobs-linters
description: |
This job runs against starlingx/zuul-jobs so we can properly
lint our ansible playbooks / roles.
required-projects:
- opendev/base-jobs
- openstack/openstack-zuul-jobs
- openstack/project-config
- opendev/system-config
- zuul/zuul-jobs
- zuul/zuul
vars:
tox_envlist: linters
tox_environment:
ANSIBLE_ROLES_PATH: ~/src/opendev.org/starlingx/zuul-jobs/roles:~/src/opendev.org/opendev/base-jobs/roles:~/src/opendev.org/zuul/zuul-jobs/roles:~/src/opendev.org/openstack/openstack-zuul-jobs/roles:~/src/opendev.org/openstack/project-config/roles:~/src/opendev.org/opendev/system-config/roles
- job:
name: stx-check-specfile
parent: tox
description: Sanity check RPM spec files
vars:
tox_envlist: rpm-packaging-lint
files: .*\.spec
- job:
name: stx-obs-build-opensuse
nodeset: opensuse-150
run: playbooks/buildproject.yaml
- job:
name: stx-obs-build-centos
nodeset: centos-7
run: playbooks/buildproject.yaml