From b71a12c7439f4656cd24e6dc0608e6e1858e4535 Mon Sep 17 00:00:00 2001 From: Leslie Wong Date: Mon, 11 Feb 2019 12:17:13 -0800 Subject: [PATCH] LRQA-46710 Avoid calculating build metrics if it is not configured to send --- .../com/liferay/jenkins/results/parser/TopLevelBuild.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/test/jenkins-results-parser/src/main/java/com/liferay/jenkins/results/parser/TopLevelBuild.java b/modules/test/jenkins-results-parser/src/main/java/com/liferay/jenkins/results/parser/TopLevelBuild.java index eb0683009cf0b9..0e109ff47d685b 100644 --- a/modules/test/jenkins-results-parser/src/main/java/com/liferay/jenkins/results/parser/TopLevelBuild.java +++ b/modules/test/jenkins-results-parser/src/main/java/com/liferay/jenkins/results/parser/TopLevelBuild.java @@ -360,7 +360,9 @@ public void update() { _updateDuration = System.currentTimeMillis() - start; - sendBuildMetricsOnModifiedBuilds(); + if (_sendBuildMetrics) { + sendBuildMetricsOnModifiedBuilds(); + } } protected TopLevelBuild(String url) {