summaryrefslogtreecommitdiffstats
path: root/tests/baselineserver
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baselineserver')
-rw-r--r--tests/baselineserver/shared/baselineprotocol.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/baselineserver/shared/baselineprotocol.cpp b/tests/baselineserver/shared/baselineprotocol.cpp
index a687c8d61b..1af5c76803 100644
--- a/tests/baselineserver/shared/baselineprotocol.cpp
+++ b/tests/baselineserver/shared/baselineprotocol.cpp
@@ -142,6 +142,14 @@ PlatformInfo PlatformInfo::localHostInfo()
pi.insert(PI_PulseTestrBranch, QString::fromLatin1(tb));
pi.setAdHocRun(false);
}
+ if (!qgetenv("JENKINS_HOME").isEmpty()) {
+ pi.setAdHocRun(false);
+ gb = qgetenv("GIT_BRANCH");
+ if (!gb.isEmpty()) {
+ // FIXME: the string "Pulse" should be eliminated, since that is not the used tool.
+ pi.insert(PI_PulseGitBranch, QString::fromLatin1(gb));
+ }
+ }
return pi;
}