Robustifies jenkins env vars
qt-migration-copilot-demo/pipeline/head This commit looks good
qt-migration-copilot-demo/pipeline/pr-main This commit looks good

This commit is contained in:
torsten committed 2026-08-13 08:44:01 +00:00
1 parent 1de80dbc79
commit 87dc561ac0
1 file changed
+7 -1
Vendored
+7 -1
View File
@@ -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'
}
}
}