summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-10-08 20:01:17 +0200
committerChristian Poessinger <christian@poessinger.com>2022-10-08 20:03:24 +0200
commit8bcce0ab6a21948b020e90c9d2fd21429d08915c (patch)
treec4d65cc1bdfe6a62d85349e4ed82f3de98a03e69 /Jenkinsfile
parent714b5735ab7e972fd08ed63ab81764c8f2221e39 (diff)
downloadvyos-build-8bcce0ab6a21948b020e90c9d2fd21429d08915c.tar.gz
vyos-build-8bcce0ab6a21948b020e90c9d2fd21429d08915c.zip
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.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile3
1 files changed, 3 insertions, 0 deletions
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