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

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

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

          set -x
          set -e

          cp ${WORKSPACE}/build-tools/pkgos-infra-install-sbuild /usr/sbin
          chmod +x /usr/sbin/pkgos-infra-install-sbuild
          cp ${WORKSPACE}/build-tools/pkgos-infra-build-pkg /usr/bin
          chmod +x /usr/bin/pkgos-infra-build-pkg
          sudo pkgos-infra-install-sbuild
          pkgos-infra-build-pkg

    publishers:
      - console-log

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

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

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

          set -x
          set -e

          sudo cp ${WORKSPACE}/build-tools/pkgos-infra-install-sbuild /usr/sbin
          sudo chmod +x /usr/sbin/pkgos-infra-install-sbuild
          sudo cp ${WORKSPACE}/build-tools/pkgos-infra-build-pkg /usr/bin
          sudo chmod +x /usr/bin/pkgos-infra-build-pkg
          sudo pkgos-infra-install-sbuild
          pkgos-infra-build-pkg

    publishers:
      - console-log

Add missing sudo to deb packaging job
Add missing sudo to deb packaging job

Change-Id: If6d7b2695d0b2cbb3a1e2e8396e41f8b1d9d5933
