From 8bcce0ab6a21948b020e90c9d2fd21429d08915c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 8 Oct 2022 20:01:17 +0200 Subject: Jenkins: T3664: specify PYTHONDONTWRITEBYTECODE environment variable The new buildsystem also creates python bytecode which has the drawback that the Jenkins call to "sudo make purge" and "deleteDir()" can not remove the files under vyos-build/scripts/__pycache__/ and gives: vyos_build_defaults.cpython-39.pyc: Operation not permitted vyos_build_utils.cpython-39.pyc: Operation not permitted This commit disables python byte-code generation on ISO builds as there is no performance impact as the script is called only once anyway. --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5f3d5aef..04ca2bfc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,6 +81,9 @@ pipeline { triggeredBy cause: "UserIdCause" } } + environment { + PYTHONDONTWRITEBYTECODE = 1 + } steps { script { // Display Git commit Id used with the Jenkinsfile on the Job "Build History" pane -- cgit v1.2.3