diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-10-09 08:30:45 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-10-09 08:30:45 +0200 |
commit | 8b3037a4a5cba019e7b6239586d712e49cab8286 (patch) | |
tree | c0e85defa6fb42e38d55a38e87e4bb1369c60370 /Jenkinsfile | |
parent | a670b2dc68174c1d68e39e61bcf1fb5b20d33f35 (diff) | |
download | vyos-build-8b3037a4a5cba019e7b6239586d712e49cab8286.tar.gz vyos-build-8b3037a4a5cba019e7b6239586d712e49cab8286.zip |
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.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 5 |
1 files 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 |