- builder:
    name: pkgos-infra-build-pkg
    builders:
    - shell: |
          #!/bin/bash -xe

          # Add OpenStack Infra internal repositories to APT source lists
          sudo ln -s \
          /etc/apt/sources.list.available.d/debian-openstack-newton.list \
          /etc/apt/sources.list.d/debian-openstack-newton.list
          # Install the build env...
          sudo apt-get update
          sudo apt-get install -y openstack-pkg-tools
          sudo pkgos-infra-install-sbuild
          # ...and build
          pkgos-infra-build-pkg

- job-template:
    name: 'gate-{name}-dpkg-{node}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 120
      - timestamps

    builders:
    - gerrit-git-prep
    - pkgos-infra-build-pkg

    publishers:
      - console-log

- job-template:
    name: '{name}-dpkg-{node}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 120
      - timestamps

    builders:
    - gerrit-git-prep
    - pkgos-infra-build-pkg

    publishers:
      - deb-pkgs:
          project: '{name}'
      - console-log

- job-group:
    name: 'debian-pkg-build'
    jobs:
      - 'gate-{name}-dpkg-{node}':
          node:
            - debian-jessie
      - '{name}-dpkg-{node}':
          node:
            - debian-jessie

- builder:
    name: pkgos-infra-build-pkg
    builders:
    - shell: |
          #!/bin/bash -xe

          # Add OpenStack Infra internal repositories to APT source lists
          sudo ln -s \
          /etc/apt/sources.list.available.d/debian-openstack-newton.list \
          /etc/apt/sources.list.d/debian-openstack-newton.list
          # Install the build env...
          sudo apt-get update
          sudo apt-get install -y openstack-pkg-tools
          sudo pkgos-infra-install-sbuild
          # ...and build
          pkgos-infra-build-pkg

- job-template:
    name: 'gate-{name}-dpkg-{node}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 90
      - timestamps

    builders:
    - gerrit-git-prep
    - pkgos-infra-build-pkg

    publishers:
      - console-log

- job-template:
    name: '{name}-dpkg-{node}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 90
      - timestamps

    builders:
    - gerrit-git-prep
    - pkgos-infra-build-pkg

    publishers:
      - deb-pkgs:
          project: '{name}'
      - console-log

- job-group:
    name: 'debian-pkg-build'
    jobs:
      - 'gate-{name}-dpkg-{node}':
          node:
            - debian-jessie
      - '{name}-dpkg-{node}':
          node:
            - debian-jessie

Revert "Build package timeout increase to 2h"
Revert "Build package timeout increase to 2h"

This reverts commit 68f5e9576dd63d3360068205cbbb527b20142159.
The intend was to extend the timeout when building backports,
but package build was increased instead.

Change-Id: I095806b8d706d88c1f720c463d541f2bf6510921
