Rename common jobs & yaml files
Adopt a new naming convention for the constructs defined in this repo: they are all to be prefixed with "starlingx-common-". Keep old jobs and project templates, but rename the relevant files to "legacy-*.yaml". This is necessary to avoid breakage in downstream projects and branches. Define 2 jobs with the new naming convention, starlingx-common-tox-{linters,pep8}. Story: 2011326 Task: 51561 Change-Id: I4e9339fb9fe952db2c3a9d105282fb7847521f8b Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
This commit is contained in:
parent
fcf5ff1c96
commit
44c449b788
@ -1,55 +1,15 @@
|
||||
#
|
||||
# Jobs in this file must begin with "starlingx-common-"
|
||||
#
|
||||
- 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
|
||||
nodeset: ubuntu-bionic
|
||||
vars:
|
||||
tox_envlist: linters
|
||||
tox_environment:
|
||||
#ANSIBLE_ROLES_PATH={env:ANSIBLE_ROLES_PATH:../zuul-jobs/roles:../openstack-zuul-jobs/roles:roles}
|
||||
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-tox-bandit-static-scan
|
||||
parent: tox
|
||||
description: |
|
||||
Static code scan of .py files for unknown Severity HIGH issues
|
||||
vars:
|
||||
tox_envlist: bandit
|
||||
files: .*\.py
|
||||
irrelevant-files:
|
||||
- ^test-requirements.txt$
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
- ^setup.cfg$
|
||||
- ^tox.ini$
|
||||
|
||||
- job:
|
||||
name: stx-tox-linters
|
||||
name: starlingx-common-tox-linters
|
||||
parent: openstack-tox-linters
|
||||
description: |
|
||||
Run Tox linters on debian-bullseye
|
||||
nodeset: debian-bullseye
|
||||
|
||||
- job:
|
||||
name: stx-tox-pep8
|
||||
name: starlingx-common-tox-pep8
|
||||
parent: openstack-tox-pep8
|
||||
description: |
|
||||
Run Tox pep8 tests on debian-bullseye
|
||||
|
53
zuul.d/legacy-jobs.yaml
Normal file
53
zuul.d/legacy-jobs.yaml
Normal file
@ -0,0 +1,53 @@
|
||||
#
|
||||
# These jobs are deprecated, please use the ones in jobs.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
|
||||
nodeset: ubuntu-bionic
|
||||
vars:
|
||||
tox_envlist: linters
|
||||
tox_environment:
|
||||
#ANSIBLE_ROLES_PATH={env:ANSIBLE_ROLES_PATH:../zuul-jobs/roles:../openstack-zuul-jobs/roles:roles}
|
||||
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-tox-bandit-static-scan
|
||||
parent: tox
|
||||
description: |
|
||||
Static code scan of .py files for unknown Severity HIGH issues
|
||||
vars:
|
||||
tox_envlist: bandit
|
||||
files: .*\.py
|
||||
irrelevant-files:
|
||||
- ^test-requirements.txt$
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
- ^setup.cfg$
|
||||
- ^tox.ini$
|
||||
|
||||
- job:
|
||||
name: stx-tox-linters
|
||||
parent: starlingx-common-tox-linters
|
||||
|
||||
- job:
|
||||
name: stx-tox-pep8
|
||||
parent: starlingx-common-tox-linters
|
Loading…
x
Reference in New Issue
Block a user