a9115643c4
Currently, pkgos-infra-install-sbuild is launch directly after sbuild is ran. This leads to this error: "User jenkins is not currently a member of group sbuild, but is in the system group database You need to log in again to gain sbuild group privileges" So this patch splits the single shell script into 2, so that it does the "log in again" part described in the above error message. This should fix the problem. Change-Id: Idf35d7c143e2fb67ccf6cdcefce74c3d45e9a49c
34 lines
718 B
YAML
34 lines
718 B
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 pkgos-infra-install-sbuild
|
|
|
|
- shell: |
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
pkgos-infra-build-pkg
|
|
|
|
publishers:
|
|
- console-log
|