From 641c1a18272c518f7006de37fdc5b3d972429d5c Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Tue, 26 Jul 2022 13:27:28 +0200
Subject: [PATCH] Jenkins: export PYTHONUNBUFFERED to get actual time stamps
 for messages

---
 jenkins/Jenkinsfile-experimental | 1 +
 jenkins/Jenkinsfile-nightly      | 1 +
 jenkins/Jenkinsfile-release      | 1 +
 jenkins/Jenkinsfunctions.groovy  | 1 -
 4 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/jenkins/Jenkinsfile-experimental b/jenkins/Jenkinsfile-experimental
index 81037b3ec6..0e6f81847d 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 3c4d19c6d8..0d588d43dd 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 547cb10d20..31f9797b60 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 08b10ac057..8ab2be77cf 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-`
-- 
GitLab