requirements/.zuul.d/project-template.yaml

58 lines
1.8 KiB
YAML

- project-template:
name: check-requirements
check:
jobs:
- requirements-check
gate:
jobs:
- requirements-check
- job:
name: requirements-check
parent: unittests
description: |
Check that requirements in the target repo match OpenStack
global requirements.
**Job Variables**
.. zuul:jobvar:: zuul_work_dir
:default: {{ zuul.project.src_dir }}
Directory holding the project to check.
.. zuul:jobvar:: zuul_branch
:default: {{ zuul.branch }}
Branch to check.
# NOTE(gmann): Update the nodeset if we move testing to the new version
# of ubuntu. We are explicitly setting the nodeset here because the base
# job (unittests) moving to the ubuntu latest version can break this
# job on stable branch (as this job on stable branch will start running on
# ubuntu latest version). This nodeset setting will avoid such breaking
# on stable branch and make sure it continue to run on the supported ubuntu
# version on stable branches.
nodeset: ubuntu-jammy
run: playbooks/requirements-check.yaml
required-projects:
- openstack/requirements
files:
- ^tools/.*-requires$
- ^.*requirements.txt$
- ^.*requirements-py[2,3].txt$
- ^doc/requirements.txt$
- playbooks/requirements-check.yaml
- ^lower-constraints.txt$
- job:
name: requirements-check-self
description: |
Run the requirements-check job on another repo in order to
self-test changes to its job configuration.
parent: requirements-check
# This could be any project, nova is chosen arbitrarily.
required-projects: openstack/nova
vars:
zuul_work_dir: "{{ zuul.projects['opendev.org/openstack/nova'].src_dir }}"
zuul_branch: "master"