Загрузка данных
Running with gitlab-runner 15.8.0 (12335144)
on gitlab-runner-gitlab-runner-5c5d8dfd84-fc2jj x3T1Qxkg, system ID: r_0t1aE5p8nfLN
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: gitlab-runners
Using Kubernetes executor with image registry.rshbdev.ru/appfarm/infra/images/sonar-scanner-cli:7.2.0.5079-rshb.1.9.1 ...
Using attach strategy to execute scripts...
Preparing environment
00:08
Waiting for pod gitlab-runners/runner-x3t1qxkg-project-78313-concurrent-02sg5w to be running, status is Pending
Waiting for pod gitlab-runners/runner-x3t1qxkg-project-78313-concurrent-02sg5w to be running, status is Pending
ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-x3t1qxkg-project-78313-concurrent-02sg5w via gitlab-runner-gitlab-runner-5c5d8dfd84-fc2jj...
Getting source from Git repository
00:01
$ git config --global --add url."https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/".insteadOf "https://${CI_SERVER_HOST}" # collapsed multi-line command
Fetching changes...
Initialized empty Git repository in /builds/rshbintech/retail/crm-systems/suz/logging/rest-integrations-log-lc-service/.git/
Created fresh repository.
Checking out de61bcc5 as master...
Skipping Git submodules setup
Downloading artifacts
00:01
Downloading artifacts for build (21959613)...
Downloading artifacts from coordinator... ok id=21959613 responseStatus=200 OK token=64_xYdFW
Executing "step_script" stage of the job script
05:14
$ [ -d root/.m2/repository/org/projectlombok/lombok ] && export SONAR_EXTRA="${SONAR_EXTRA} -Dsonar.java.libraries=root/.m2/repository/org/projectlombok/lombok/*/lombok-*.jar"
$ java_binaries=() # collapsed multi-line command
$ export PROJECT_KEY_PREFIX=${DEPART:-$CI_PROJECT_NAME}
$ export SONAR_PROJECT_KEY=${PROJECT_KEY_PREFIX//"/"/"-"}-${CI_PROJECT_ID}
$ export SONAR_PROJECT_NAME="$(echo -n ${CI_PROJECT_TITLE} \(${CI_PROJECT_NAME}-${CI_PROJECT_ID}\) | perl -Wpe 's/ +/_/g')"
$ export SONAR_SCANNER_OPTS="-XX:MaxRAMPercentage=80.0 -XX:MinRAMPercentage=80.0 -XX:+UseTransparentHugePages ${SONAR_SCANNER_OPTS}"
$ # Подмена значения SONARQUBE_URL нужным шардом, на основании информации из API SONARQUBE_PROXY_URL # collapsed multi-line command
$ # Если событие МР то проверяется diff для мержаемой ветки в ветку назначения # collapsed multi-line command
$ sonar-scanner -Dsonar.host.url=${SONARQUBE_URL} -Dsonar.projectKey="${SONAR_PROJECT_KEY}" -Dsonar.projectName="${SONAR_PROJECT_NAME}" -Dsonar.projectBaseDir=. -Dsonar.qualitygate.wait=true -Dsonar.links.scm=${CI_PROJECT_URL} -Dsonar.links.ci=${CI_PROJECT_URL} -Dsonar.links.homepage=${CI_PROJECT_URL}/pipelines -Dsonar.sources=${SONAR_SOURCES:-.} -Dsonar.login=${SONAR_TOKEN} -Dsonar.gitlab.api_version=v4 -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.url=${CI_SERVER_URL} -Dsonar.gitlab.user_token=${CODEREVIEWER_TOKEN} $SONAR_PR_PARAMS $NEW_CODE_REFERENCE_BRANCH -Dsonar.scm.provider=git -Dsonar.gitlab.failure_notification_mode=${SONAR_NOTIFICATION:-exit-code} -Dsonar.exclusions=${SONAR_EXCLUSIONS} -Dsonar.cpd.exclusions=${SONAR_CPD_EXCLUSIONS} -Dsonar.ws.timeout=${SONAR_ANALYSIS_TIMEOUT:-800} -Dsonar.qualitygate.timeout=${SONAR_QUALITYGATE_TIMEOUT:-800} -Dsonar.verbose=${SONAR_VERBOSE:-false} $(eval printf '%s\ ' "${SONAR_EXTRA}")
14:50:42.582 INFO Scanner configuration file: /sonar-scanner/conf/sonar-scanner.properties
14:50:42.592 INFO Project root configuration file: NONE
14:50:42.626 INFO SonarScanner CLI 7.2.0.5079
14:50:42.632 INFO Linux 6.1.90-un-def-alt1 amd64
14:50:42.716 WARN Both 'sonar.login' and 'sonar.token' (or the 'SONAR_TOKEN' env variable) are set, but only the latter will be used.
14:50:42.718 WARN Property sonar.ws.timeout is deprecated and will be removed in a future version. Please use sonar.scanner.socketTimeout instead.
14:50:44.231 INFO Communicating with SonarQube Server 9.9.8.100196
14:50:46.025 INFO Load global settings
14:50:46.207 INFO Load global settings (done) | time=184ms
14:50:46.214 INFO Server id: FDA8ED4B-AXVToOGgtD7ssFx6KKri
14:50:46.222 INFO User cache: /root/.sonar/cache
14:50:46.227 INFO Load/download plugins
14:50:46.228 INFO Load plugins index
14:50:46.308 INFO Load plugins index (done) | time=80ms
14:50:50.458 INFO Load/download plugins (done) | time=4231ms
14:50:51.824 INFO Process project properties
14:50:51.838 INFO Process project properties (done) | time=13ms
14:50:51.844 INFO Execute project builders
14:50:51.847 INFO Execute project builders (done) | time=3ms
14:50:51.851 INFO Project key: rshbintech-retail-crm-systems-78313
14:50:51.851 INFO Base dir: /builds/rshbintech/retail/crm-systems/suz/logging/rest-integrations-log-lc-service
14:50:51.851 INFO Working dir: /builds/rshbintech/retail/crm-systems/suz/logging/rest-integrations-log-lc-service/.scannerwork
14:50:51.864 INFO Load project settings for component key: 'rshbintech-retail-crm-systems-78313'
14:50:51.912 INFO Load project settings for component key: 'rshbintech-retail-crm-systems-78313' (done) | time=47ms
14:50:52.026 INFO Load project branches
14:50:52.098 INFO Load project branches (done) | time=72ms
14:50:52.100 INFO Load branch configuration
14:50:52.103 INFO Auto detected BRANCH configuration with source master using com.github.mc1arke.sonarqube.plugin.scanner.autoconfiguration.GitlabCiAutoConfigurer
14:50:52.104 INFO Load branch configuration (done) | time=4ms
14:50:52.168 INFO Auto-configuring with CI 'Gitlab CI'
14:50:52.173 INFO Load quality profiles
14:50:52.280 INFO Load quality profiles (done) | time=107ms
14:50:52.293 INFO Load active rules
14:50:54.240 INFO Load active rules (done) | time=1946ms
14:50:54.257 INFO Load analysis cache
14:50:54.313 INFO Load analysis cache (5.6 kB) | time=56ms
14:50:54.412 INFO Branch name: master
14:50:54.451 INFO Load project repositories
14:50:54.520 INFO Load project repositories (done) | time=69ms
14:50:54.667 INFO Indexing files...
14:50:54.668 INFO Project configuration:
14:50:54.670 INFO Excluded sources: app/build/jacoco/**/*, app/build/reports/jacoco/**/*, src/test/**/*, app/build/generated-sources/**/*.java, app/build/generated-test-sources/**/*.java, app/build/classes/generated/**/*.java, app/**/build/reports/jacoco/**/*, **/src/test/**/*, app/**/build/generated-sources/**/*.java, app/**/build/generated-test-sources/**/*.java, app/**/build/classes/generated/**/*.java, app/**/build/classes/templates/**/*.js, src/main/resources/templates/**/*.js, deploy/envs/**/*
14:50:54.672 INFO Excluded sources for duplication: app/build/generated-sources/**/*.java, app/build/generated-test-sources/**/*.java, app/build/classes/generated/**/*.java, app/**/build/generated-sources/**/*.java, app/**/build/generated-test-sources/**/*.java, app/**/build/classes/generated/**/*.java, app/**/build/classes/templates/**/*.js, src/main/resources/templates/**/*.js
14:50:55.493 INFO 220 files indexed
14:50:55.493 INFO 5 files ignored because of inclusion/exclusion patterns
14:50:55.494 INFO 241 files ignored because of scm ignore settings
14:50:55.498 INFO Quality profile for java: Sonar way Intech
14:50:55.498 INFO ------------- Run sensors on module Сервис_логирования_(rest-integrations-log-lc-service-78313)
14:50:55.737 INFO Load metrics repository
14:50:55.767 INFO Load metrics repository (done) | time=29ms
14:50:57.781 INFO Sensor JavaSensor [java]
14:50:57.790 INFO Configured Java source version (sonar.java.source): none
14:50:57.797 INFO JavaClasspath initialization
14:50:57.801 INFO JavaClasspath initialization (done) | time=4ms
14:50:57.802 INFO JavaTestClasspath initialization
14:50:57.802 INFO JavaTestClasspath initialization (done) | time=1ms
14:50:57.815 INFO Server-side caching is enabled. The Java analyzer will not try to leverage data from a previous analysis.
14:50:57.820 INFO Using ECJ batch to parse 211 Main java source files with batch size 171 KB.
14:50:58.118 INFO Starting batch processing.
14:50:59.108 INFO The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files.
14:51:02.743 ERROR Unable to parse source file : 'src/main/java/ru/tsc/crm/restintegrationsloglcservice/service/builder/logs/query/LogsGetByIdQueryBuilder.java'
14:51:02.743 ERROR Parse error at line 51 column 23: A switch expression should have a default case
14:51:03.279 ERROR Unable to parse source file : 'src/main/java/ru/tsc/crm/restintegrationsloglcservice/service/builder/importfiles/query/ImportFilesFilterQueryBuilder.java'
14:51:03.279 ERROR Parse error at line 92 column 23: A switch expression should have a default case
14:51:03.552 ERROR Unable to parse source file : 'src/main/java/ru/tsc/crm/restintegrationsloglcservice/service/builder/logs/query/LogsFilterQueryBuilder.java'
14:51:03.552 ERROR Parse error at line 88 column 23: A switch expression should have a default case
14:51:06.017 INFO 100% analyzed
14:51:06.018 INFO Batch processing: Done.
14:51:06.018 INFO Did not optimize analysis for any files, performed a full analysis for all 211 files.
14:51:06.021 WARN Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results.
14:51:06.025 WARN Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
14:51:06.026 WARN Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
14:51:06.027 INFO No "Test" source files to scan.
14:51:06.027 INFO No "Generated" source files to scan.
14:51:06.027 INFO Sensor JavaSensor [java] (done) | time=8247ms
14:51:06.027 INFO Sensor C# Project Type Information [csharp]
14:51:06.029 INFO Sensor C# Project Type Information [csharp] (done) | time=2ms
14:51:06.029 INFO Sensor C# Analysis Log [csharp]
14:51:06.051 INFO Sensor C# Analysis Log [csharp] (done) | time=22ms
14:51:06.051 INFO Sensor C# Properties [csharp]
14:51:06.052 INFO Sensor C# Properties [csharp] (done) | time=1ms
14:51:06.052 INFO Sensor SurefireSensor [java]
14:51:06.053 INFO parsing [/builds/rshbintech/retail/crm-systems/suz/logging/rest-integrations-log-lc-service/target/surefire-reports]
14:51:06.054 INFO Sensor SurefireSensor [java] (done) | time=2ms
14:51:06.054 INFO Sensor HTML [web]
14:51:06.059 INFO Sensor HTML [web] (done) | time=5ms
14:51:06.060 INFO Sensor TextAndSecretsSensor [text]
14:51:06.078 INFO 211 source files to be analyzed
14:51:06.270 INFO 211/211 source files have been analyzed
14:51:06.271 INFO Sensor TextAndSecretsSensor [text] (done) | time=211ms
14:51:06.271 INFO Sensor VB.NET Project Type Information [vbnet]
14:51:06.273 INFO Sensor VB.NET Project Type Information [vbnet] (done) | time=2ms
14:51:06.273 INFO Sensor VB.NET Analysis Log [vbnet]
14:51:06.294 INFO Sensor VB.NET Analysis Log [vbnet] (done) | time=20ms
14:51:06.294 INFO Sensor VB.NET Properties [vbnet]
14:51:06.294 INFO Sensor VB.NET Properties [vbnet] (done) | time=0ms
14:51:06.294 INFO Sensor com.github.mc1arke.sonarqube.plugin.scanner.ScannerPullRequestPropertySensor
14:51:06.295 INFO Sensor com.github.mc1arke.sonarqube.plugin.scanner.ScannerPullRequestPropertySensor (done) | time=1ms
14:51:06.296 INFO Sensor JaCoCo XML Report Importer [jacoco]
14:51:06.298 INFO 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
14:51:06.299 INFO No report imported, no coverage information will be imported by JaCoCo XML Report Importer
14:51:06.300 INFO Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
14:51:06.300 INFO Sensor FindBugs Sensor [findbugs]
14:51:06.301 INFO Findbugs plugin version: 4.2.6
14:51:06.303 INFO Sensor FindBugs Sensor [findbugs] (done) | time=3ms
14:51:06.303 INFO Sensor IaC Docker Sensor [iac]
14:51:06.314 INFO 0 source files to be analyzed
14:51:06.384 INFO 0/0 source files have been analyzed
14:51:06.385 INFO Sensor IaC Docker Sensor [iac] (done) | time=82ms
14:51:06.392 INFO ------------- Run sensors on project
14:51:06.484 INFO Sensor Compute branches [commentpolicy]
14:51:06.484 INFO Config sonar.appfarm.source not found. Used default value: master
14:51:06.485 INFO Config sonar.appfarm.is_pr not found. Used default value: false
14:51:06.485 INFO Config sonar.appfarm.target not found. Used default value: master
14:51:06.485 INFO [Configuration] sonar.appfarm.source: master
14:51:06.485 INFO [Configuration] sonar.appfarm.target: master
14:51:06.485 INFO [Configuration] sonar.appfarm.is_pr: false
14:51:06.488 INFO Sensor Compute branches [commentpolicy] (done) | time=5ms
14:51:06.489 INFO Sensor Analysis Warnings import [csharp]
14:51:06.490 INFO Sensor Analysis Warnings import [csharp] (done) | time=1ms
14:51:06.490 INFO Sensor Zero Coverage Sensor
14:51:06.531 INFO Sensor Zero Coverage Sensor (done) | time=41ms
14:51:06.531 INFO Sensor Java CPD Block Indexer
14:51:06.823 INFO Sensor Java CPD Block Indexer (done) | time=292ms
14:51:06.859 INFO CPD Executor 136 files had no CPD blocks
14:51:06.859 INFO CPD Executor Calculating CPD for 75 files
14:51:06.900 INFO CPD Executor CPD calculation finished (done) | time=40ms
14:51:07.024 INFO Load New Code definition
14:51:07.056 INFO Load New Code definition (done) | time=32ms
14:51:07.080 INFO Analysis report generated in 159ms, dir size=820.6 kB
14:51:07.476 INFO Analysis report compressed in 395ms, zip size=501.3 kB
14:51:08.216 INFO Analysis report uploaded in 740ms
14:51:08.219 INFO ------------- Check Quality Gate status
14:51:08.221 INFO Waiting for the analysis report to be processed (max 800s)
14:51:33.543 INFO QUALITY GATE STATUS: PASSED - View details on https://sonarqube.rshbdev.ru/dashboard?id=rshbintech-retail-crm-systems-78313&branch=master
14:51:33.739 INFO Executing post-job 'GitLab Commit Issue Publisher'
14:51:33.739 INFO Will execute CommitPublishPostJob of GitlabPlugin.
14:51:33.739 INFO GitLab plugin is enabled
14:51:40.755 INFO Quality gate status: OK
14:51:40.757 INFO Reliability Rating on New Code : 1
14:51:40.758 INFO Security Rating on New Code : 1
14:51:40.758 INFO Maintainability Rating on New Code : 1
14:51:40.758 INFO Coverage on New Code : 0.0
14:51:40.758 INFO Duplicated Lines (%) on New Code : 8.77993
14:51:44.794 INFO Will try to update review comments.
14:55:54.454 INFO EXECUTION FAILURE
14:55:54.456 INFO Total time: 5:11.887s
14:55:54.456 ERROR Error during SonarScanner CLI execution
14:55:54.456 ERROR Report status=failed, desc=SonarQube reported QualityGate is ok, with 5 ok, 352 issues, with 234 critical (fail) and 9 major and 43 minor and 66 info
14:55:54.456 ERROR
14:55:54.456 ERROR Re-run SonarScanner CLI using the -X switch to enable full debug logging.
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: command terminated with exit code 1