Use --preserve-env when calling sudo

We need the ${WORKSPACE} and such when calling pkgos-infra-install-sbuild

Change-Id: Idb3ae85fc730bc971a67b0bfb23b6e7196c3036d
This commit is contained in:
Thomas Goirand 2016-11-04 18:37:55 +01:00
parent ba0fe01ad6
commit 97318291f8

View File

@ -19,7 +19,7 @@
sudo chmod +x /usr/sbin/pkgos-infra-install-sbuild sudo chmod +x /usr/sbin/pkgos-infra-install-sbuild
sudo cp ${WORKSPACE}/build-tools/pkgos-infra-build-pkg /usr/bin sudo cp ${WORKSPACE}/build-tools/pkgos-infra-build-pkg /usr/bin
sudo chmod +x /usr/bin/pkgos-infra-build-pkg sudo chmod +x /usr/bin/pkgos-infra-build-pkg
sudo pkgos-infra-install-sbuild sudo --preserve-env pkgos-infra-install-sbuild
pkgos-infra-build-pkg pkgos-infra-build-pkg
publishers: publishers:
@ -46,7 +46,7 @@
sudo chmod +x /usr/sbin/pkgos-infra-install-sbuild sudo chmod +x /usr/sbin/pkgos-infra-install-sbuild
sudo cp ${WORKSPACE}/build-tools/pkgos-infra-build-pkg /usr/bin sudo cp ${WORKSPACE}/build-tools/pkgos-infra-build-pkg /usr/bin
sudo chmod +x /usr/bin/pkgos-infra-build-pkg sudo chmod +x /usr/bin/pkgos-infra-build-pkg
sudo pkgos-infra-install-sbuild sudo --preserve-env pkgos-infra-install-sbuild
pkgos-infra-build-pkg pkgos-infra-build-pkg
publishers: publishers: