From 87dc561ac0e4dff234714f0ec2366c30a32b897e Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Thu, 13 Aug 2026 08:44:01 +0000 Subject: [PATCH] Robustifies jenkins env vars --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4516dad..1656542 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,9 @@ pipeline { PROJECT_DIR = "qt6-after/qt6-migrated-benchmark" BUILD_DIR = "build" CHANGE_TARGET = "${env.CHANGE_TARGET ?: 'origin/main'}" + QT_QPA_PLATFORM = "offscreen" + LANG = "C.UTF-8" + LC_ALL = "C.UTF-8" } stages { @@ -41,6 +44,9 @@ pipeline { stage('Qt Diagnostics') { steps { sh ''' + echo "QT_QPA_PLATFORM=$QT_QPA_PLATFORM" + echo "LANG=$LANG" + echo "LC_ALL=$LC_ALL" dpkg -l | grep -E "qt6-base-dev|qtbase5-dev|qt6-tools" || true pkg-config --list-all | grep -i qt || true ''' @@ -67,7 +73,7 @@ pipeline { stage('Test') { steps { - sh 'ctest --test-dir ${BUILD_DIR} --output-on-failure' + sh 'QT_QPA_PLATFORM=offscreen LANG=C.UTF-8 LC_ALL=C.UTF-8 ctest --test-dir ${BUILD_DIR} --output-on-failure' } } }