From 8b3037a4a5cba019e7b6239586d712e49cab8286 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 9 Oct 2022 08:30:45 +0200 Subject: Jenkins: T3664: preserve environment when calling sudo for image build COmmit 8bcce0a ("Jenkins: T3664: specify PYTHONDONTWRITEBYTECODE environment variable") defined the python environment variable, but subsequent calls to sudo did not preserve the new environment. This has been changed. --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4ef4d927..efa075a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -100,8 +100,9 @@ pipeline { sh """ env - sudo env - sudo ./build-vyos-image --build-by "${params.BUILD_BY}" \ + sudo --preserve-env env + sudo --preserve-env ./build-vyos-image \ + --build-by "${params.BUILD_BY}" \ --debian-mirror http://deb.debian.org/debian/ \ --build-type release \ --version "${VYOS_VERSION}" ${CUSTOM_PACKAGES} iso -- cgit v1.2.3