diff --git a/jenkins/Jenkinsfile-experimental b/jenkins/Jenkinsfile-experimental
index 81037b3ec6d036fdf6fef40f33db93655dcbf106..0e6f81847d4e9ec45615f4e78ef39e46bce75d5c 100644
--- a/jenkins/Jenkinsfile-experimental
+++ b/jenkins/Jenkinsfile-experimental
@@ -39,6 +39,7 @@ pipeline {
     CTEST_MODEL = 'Experimental'
     TARGET = getTarget()
     GITHUB_PAT = credentials('lcgcmake_github_pat')
+    PYTHONUNBUFFERED = 'True'
   }
 
   agent none
diff --git a/jenkins/Jenkinsfile-nightly b/jenkins/Jenkinsfile-nightly
index 3c4d19c6d8052ed4e8a3745a8d054cfddb4188b8..0d588d43dd5baf4c5e68d49c10e52b3c37d8ba88 100644
--- a/jenkins/Jenkinsfile-nightly
+++ b/jenkins/Jenkinsfile-nightly
@@ -58,6 +58,7 @@ pipeline {
     TARGET = getTarget()
     IGNORE_PYTHON_MODULE = getIgnoreModules()
     GITHUB_PAT = credentials('lcgcmake_github_pat')
+    PYTHONUNBUFFERED = 'True'
   }
 
   agent none
diff --git a/jenkins/Jenkinsfile-release b/jenkins/Jenkinsfile-release
index 547cb10d20412132579497a5ba4c3af3a19e42a0..31f9797b60695312196f00a166932338753493a5 100644
--- a/jenkins/Jenkinsfile-release
+++ b/jenkins/Jenkinsfile-release
@@ -54,6 +54,7 @@ pipeline {
     RELEASE_MODE = '1'
     db_pass = credentials('lcgsoft_db_password')
     GITHUB_PAT = credentials('lcgcmake_github_pat')
+    PYTHONUNBUFFERED = 'True'
   }
 
   agent none
diff --git a/jenkins/Jenkinsfunctions.groovy b/jenkins/Jenkinsfunctions.groovy
index 08b10ac057297d2e87fe4746ba0bf82fa6782a80..8ab2be77cf70b1edd9d3bf0fd87edfeb053c0d52 100644
--- a/jenkins/Jenkinsfunctions.groovy
+++ b/jenkins/Jenkinsfunctions.groovy
@@ -202,7 +202,6 @@ def createRPMS() {
 
 def publishRPMS() {
   sh  label: 'publish-rpms', script: """
-    export PYTHONUNBUFFERED=TRUE
     export EOS_MGM_URL=root://eosproject-l.cern.ch/
     export LABEL=`echo ${PLATFORM} | cut -f2 -d-`
     export ARCH=`echo ${PLATFORM} | cut -f1 -d-`