project-config/jenkins/jobs/deb-openstack-pkg-tools.yaml
Thomas Goirand 97318291f8 Use --preserve-env when calling sudo
We need the ${WORKSPACE} and such when calling pkgos-infra-install-sbuild

Change-Id: Idb3ae85fc730bc971a67b0bfb23b6e7196c3036d
2016-11-04 18:37:55 +01:00

56 lines
1.3 KiB
YAML

- 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 --preserve-env pkgos-infra-install-sbuild
pkgos-infra-build-pkg
publishers:
- console-log
- job:
name: pkgdeb-publish-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 --preserve-env pkgos-infra-install-sbuild
pkgos-infra-build-pkg
publishers:
- deb-pkgs:
project: deb-openstack-pkg-tools
- console-log