- job:
    name: pkgdeb-build-pkg
    node: debian-jessie

    wrappers:
      - build-timeout:
          timeout: 30
      - timestamps

    builders:
    - gerrit-git-prep
    - shell: |
          #!/bin/bash -xe

          # 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

    publishers:
      - console-log

- job:
    name: pkgdeb-publish-pkg
    node: debian-jessie

    wrappers:
      - build-timeout:
          timeout: 30
      - timestamps

    builders:
    - gerrit-git-prep
    - shell: |
          #!/bin/bash

          set -x
          set -e

          # 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

    publishers:
      - deb-pkgs:
          project: deb-pkg
      - console-log

- job:
    name: pkgdeb-build-pkg
    node: debian-jessie

    wrappers:
      - build-timeout:
          timeout: 30
      - timestamps

    builders:
    - gerrit-git-prep
    - 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

    publishers:
      - console-log

- job:
    name: pkgdeb-publish-pkg
    node: debian-jessie

    wrappers:
      - build-timeout:
          timeout: 30
      - timestamps

    builders:
    - gerrit-git-prep
    - 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

    publishers:
      - deb-pkgs:
          project: deb-pkg
      - console-log

Add OpenStack Infra internal repositories to APT source lists
Add OpenStack Infra internal repositories to APT source lists

Distribution: jessie-newton

pkgdeb-build-pkg Jenkins job fails [1] because of an old (22)
openstack-pkg-tools package version which is used during installation
and does not contain required pkgos-infra-install-sbuild binary.

[1] http://logs.openstack.org/35/348435/1/check/pkgdeb-build-pkg/
    e55e9dc/console.html

Change-Id: Ia4811a006225031a83b8258c15c36c82bf8fe54b
