- job-template:
    name: 'periodic-{name}-python27{branch-name}'

    wrappers:
      - build-timeout:
          timeout: 40
      - timestamps

    builders:
      - revoke-sudo
      - branch-git-prep:
          branch: '{branch}'
      - python27
      - assert-no-extra-files

    publishers:
      - test-results
      - console-log

    node: '{node}'


- job-template:
    name: 'periodic-{name}-docs{branch-name}'

    wrappers:
      - build-timeout:
          timeout: 40
      - timestamps

    builders:
      - revoke-sudo
      - branch-git-prep:
          branch: '{branch}'
      - docs

    publishers:
      - console-log

    node: '{node}'


- job-group:
    name: python-kilo-bitrot-jobs
    branch: 'stable/kilo'
    branch-name: '-kilo'
    node: bare-trusty
    jobs:
      - 'periodic-{name}-python27{branch-name}'
      - 'periodic-{name}-docs{branch-name}'


- job-group:
    name: python-liberty-bitrot-jobs
    branch: 'stable/liberty'
    branch-name: '-liberty'
    node: bare-trusty
    jobs:
      - 'periodic-{name}-python27{branch-name}'
      - 'periodic-{name}-docs{branch-name}'

- job-template:
    name: 'periodic-{name}-python27{branch-name}'

    wrappers:
      - build-timeout:
          timeout: 40
      - timestamps

    builders:
      - revoke-sudo
      - zuul-git-branch-prep-upper-constraints:
          branch: '{branch}'
      - python27
      - assert-no-extra-files

    publishers:
      - test-results
      - console-log

    node: '{node}'


- job-template:
    name: 'periodic-{name}-docs{branch-name}'

    wrappers:
      - build-timeout:
          timeout: 40
      - timestamps

    builders:
      - revoke-sudo
      - zuul-git-branch-prep-upper-constraints:
          branch: '{branch}'
      - docs

    publishers:
      - console-log

    node: '{node}'


- job-group:
    name: python-kilo-bitrot-jobs
    branch: 'stable/kilo'
    branch-name: '-kilo'
    node: bare-trusty
    jobs:
      - 'periodic-{name}-python27{branch-name}'
      - 'periodic-{name}-docs{branch-name}'


- job-group:
    name: python-liberty-bitrot-jobs
    branch: 'stable/liberty'
    branch-name: '-liberty'
    node: bare-trusty
    jobs:
      - 'periodic-{name}-python27{branch-name}'
      - 'periodic-{name}-docs{branch-name}'

Prepare constraints file for periodic bitrot jobs
Prepare constraints file for periodic bitrot jobs

Neutron 'general' tox targets rely on the file starting from Liberty
since https://review.openstack.org/#/c/289280/

We should prepare the constraints file for tox consumption.

Though it's needed for Liberty only so far, Kilo branch also has the
constraints file in requirements repo, and hence it's safe to prepare it
in case some projects want to consume it in Kilo too.

Closes-Bug: #1554518
Change-Id: I81e9f271304827a9b6e3c270540b21c9d1c0184f
