diff --git a/build.gradle b/build.gradle index 22cf1bc..365b30b 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ project.ext { ext['junit-jupiter.version'] = '5.10.0' -def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' + (releaseMode ? '5.10.0' : 'develop') +def scriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' + (releaseMode ? '5.12.0' : 'develop') apply from: "$scriptsUrl/build-commons.gradle" apply from: "$scriptsUrl/build-info.gradle" diff --git a/gradle.properties b/gradle.properties index dd3706e..278054c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=5.11.2 +version=5.12.1 description=EPAM Report portal. Service jobs dockerServerUrl=unix:///var/run/docker.sock dockerPrepareEnvironment= diff --git a/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java b/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java index 914fa80..82e4ae8 100644 --- a/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java +++ b/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java @@ -125,13 +125,14 @@ public void execute() { if (metadata.optInt("userAnalyzed") > 0) { status.add("manually"); + sentToAnalyze += metadata.optInt("userAnalyzed"); } else { status.add("automatically"); + sentToAnalyze += metadata.optInt("sentToAnalyze"); } userAnalyzed += metadata.optInt("userAnalyzed"); autoAnalyzed += metadata.optInt("analyzed"); - sentToAnalyze += metadata.optInt("userAnalyzed") + metadata.optInt("sentToAnalyze"); version = metadata.getString("version"); } while (rs.next()); @@ -164,6 +165,9 @@ public void execute() { sendRequest(requestBody); }); + + LOGGER.info("Completed items defect update statistics job"); + } private void sendRequest(JSONObject requestBody) {