From 97318291f8ef36f68f2a5200450dd740d4b59b14 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 4 Nov 2016 18:37:55 +0100 Subject: [PATCH] Use --preserve-env when calling sudo We need the ${WORKSPACE} and such when calling pkgos-infra-install-sbuild Change-Id: Idb3ae85fc730bc971a67b0bfb23b6e7196c3036d --- jenkins/jobs/deb-openstack-pkg-tools.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/jobs/deb-openstack-pkg-tools.yaml b/jenkins/jobs/deb-openstack-pkg-tools.yaml index 52f95a670a..50e0ef5f76 100644 --- a/jenkins/jobs/deb-openstack-pkg-tools.yaml +++ b/jenkins/jobs/deb-openstack-pkg-tools.yaml @@ -19,7 +19,7 @@ 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 + sudo --preserve-env pkgos-infra-install-sbuild pkgos-infra-build-pkg publishers: @@ -46,7 +46,7 @@ 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 + sudo --preserve-env pkgos-infra-install-sbuild pkgos-infra-build-pkg publishers: