Running with gitlab-runner 12.9.0 (4c96e5ad) on gitlab-runner-k8s-b6a3ba9-b99444fd-rkzw7 CdzAAivK Preparing the "kubernetes" executor 00:00 "CPULimit" overwritten with "1000m" "MemoryLimit" overwritten with "4Gi" Using Kubernetes namespace: gitlabci Using Kubernetes executor with image $CI_REGISTRY/lvcd/sonar-scanner:latest ... Preparing environment 00:03 Waiting for pod gitlabci/runner-cdzaaivk-project-34623-concurrent-06ntp2 to be running, status is Pending Running on runner-cdzaaivk-project-34623-concurrent-06ntp2 via gitlab-runner-k8s-b6a3ba9-b99444fd-rkzw7... Getting source from Git repository Fetching changes... Initialized empty Git repository in /builds/nb/underwriting/mailrtr/mailrouter/.git/ Created fresh repository. From https://git.nmlv.nml.com/nb/underwriting/mailrtr/mailrouter * [new ref] refs/pipelines/4038251 -> refs/pipelines/4038251 * [new branch] bug/FixTemplateParams -> origin/bug/FixTemplateParams * [new branch] bug/InvalidPdfTrailerNotFound -> origin/bug/InvalidPdfTrailerNotFound * [new branch] bug/NullAttachment -> origin/bug/NullAttachment * [new branch] bug/Nullattachment -> origin/bug/Nullattachment * [new branch] bug/reinterruptGenUniqueID -> origin/bug/reinterruptGenUniqueID * [new branch] bug/shadowedTmpForIndxingPath -> origin/bug/shadowedTmpForIndxingPath * [new branch] chore/sonarqubeCoverageAdj -> origin/chore/sonarqubeCoverageAdj * [new branch] chore/updateJUnitVers -> origin/chore/updateJUnitVers * [new branch] develop -> origin/develop * [new branch] feature/AandNRejectAtachmentCall -> origin/feature/AandNRejectAtachmentCall * [new branch] feature/AddThrowException9999Controller -> origin/feature/AddThrowException9999Controller * [new branch] feature/AttachmentsServiceMRCatch -> origin/feature/AttachmentsServiceMRCatch * [new branch] feature/AutoGeneratedLinkgramsTesting -> origin/feature/AutoGeneratedLinkgramsTesting * [new branch] feature/BackoutFailureLogging -> origin/feature/BackoutFailureLogging * [new branch] feature/BreakStuff -> origin/feature/BreakStuff * [new branch] feature/CallAandNRejectAttachments -> origin/feature/CallAandNRejectAttachments * [new branch] feature/CannotConvertSTringHandleExceptionBlock -> origin/feature/CannotConvertSTringHandleExceptionBlock * [new branch] feature/CreateMethodToPrepareMetaDataFile -> origin/feature/CreateMethodToPrepareMetaDataFile * [new branch] feature/CreateProcessAttachmentsMethod -> origin/feature/CreateProcessAttachmentsMethod * [new branch] feature/ExceptionHandlingTestProcessor -> origin/feature/ExceptionHandlingTestProcessor * [new branch] feature/ExperimentalAandNCall -> origin/feature/ExperimentalAandNCall * [new branch] feature/FixUnitTests -> origin/feature/FixUnitTests * [new branch] feature/FunctionalTestErrorInFlowToNbsmail -> origin/feature/FunctionalTestErrorInFlowToNbsmail * [new branch] feature/HelpA -> origin/feature/HelpA * [new branch] feature/MORELOGGING -> origin/feature/MORELOGGING * [new branch] feature/PDFcorrupt -> origin/feature/PDFcorrupt * [new branch] feature/PhilipsTestingRunner -> origin/feature/PhilipsTestingRunner * [new branch] feature/ProcessorUnitTest -> origin/feature/ProcessorUnitTest * [new branch] feature/RemoveAutoGeneratedFiles -> origin/feature/RemoveAutoGeneratedFiles * [new branch] feature/RemovePolicyNumberFromFileName -> origin/feature/RemovePolicyNumberFromFileName * [new branch] feature/ReplacePolicy -> origin/feature/ReplacePolicy * [new branch] feature/SeeMore -> origin/feature/SeeMore * [new branch] feature/SendingEmailsInBackout -> origin/feature/SendingEmailsInBackout * [new branch] feature/SeparateMETADATAMethod -> origin/feature/SeparateMETADATAMethod * [new branch] feature/TestXceptionHandling -> origin/feature/TestXceptionHandling * [new branch] feature/TryToSeeWhatIsHappening -> origin/feature/TryToSeeWhatIsHappening * [new branch] feature/UnitTestDeleteTemp -> origin/feature/UnitTestDeleteTemp * [new branch] feature/UnitTestUtilities -> origin/feature/UnitTestUtilities * [new branch] feature/UnittestProcessvalidAttachments -> origin/feature/UnittestProcessvalidAttachments * [new branch] feature/UserType -> origin/feature/UserType * [new branch] feature/WriteToNbsmail -> origin/feature/WriteToNbsmail * [new branch] feature/design625 -> origin/feature/design625 * [new branch] feature/designChangeCC -> origin/feature/designChangeCC * [new branch] feature/designTooLargeEmail -> origin/feature/designTooLargeEmail * [new branch] feature/developSeeMore -> origin/feature/developSeeMore * [new branch] feature/experimentalsolution -> origin/feature/experimentalsolution * [new branch] feature/forceExceptionsForTesting -> origin/feature/forceExceptionsForTesting * [new branch] feature/iText7 -> origin/feature/iText7 * [new branch] feature/metricLoggingStatements -> origin/feature/metricLoggingStatements * [new branch] feature/standardizeErrMsgs -> origin/feature/standardizeErrMsgs * [new branch] feature/throw9999InController -> origin/feature/throw9999InController * [new branch] hotfix/teamfixwbbug -> origin/hotfix/teamfixwbbug * [new branch] master -> origin/master Checking out e87a817a as chore/sonarqubeCoverageAdj... Skipping Git submodules setup Restoring cache 00:00 Downloading artifacts Downloading artifacts for Unit Test (18748869)... Downloading artifacts from coordinator... ok id=18748869 responseStatus=200 OK token=bcNPD1bW Running before_script and script $ echo "Exporting global variables..." # collapsed multi-line command Exporting global variables... $ SONAR_PROJECT_KEY=${CI_PROJECT_NAMESPACE//[\/]/-} $ sonar-scanner -Dsonar.analysis.mode=publish -Dsonar.branch.name=$CI_COMMIT_REF_NAME -Dsonar.projectKey=$SONAR_PROJECT_KEY:$CI_PROJECT_NAME -Dsonar.projectName=$CI_PROJECT_PATH -Dsonar.projectVersion=1.0 -Dsonar.sources=. INFO: Scanner configuration file: /sonar-scanner-4.0.0.1744/conf/sonar-scanner.properties INFO: Project root configuration file: /builds/nb/underwriting/mailrtr/mailrouter/sonar-project.properties INFO: SonarQube Scanner 4.0.0.1744 INFO: Java 1.8.0_171 Oracle Corporation (64-bit) INFO: Linux 4.19.128-flatcar amd64 INFO: User cache: /root/.sonar/cache INFO: SonarQube server 7.7.0 INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Load global settings INFO: Load global settings (done) | time=172ms INFO: Server id: B772A430-AWVX6BMtahmOA2ViO0Zk INFO: User cache: /root/.sonar/cache INFO: Load/download plugins INFO: Load plugins index INFO: Load plugins index (done) | time=48ms INFO: Load/download plugins (done) | time=5252ms INFO: Process project properties INFO: Execute project builders INFO: Execute project builders (done) | time=12ms INFO: Project key: nb-underwriting-mailrtr:mailrouter INFO: Base dir: /builds/nb/underwriting/mailrtr/mailrouter INFO: Working dir: /builds/nb/underwriting/mailrtr/mailrouter/.scannerwork INFO: Load project settings for component key: 'nb-underwriting-mailrtr:mailrouter' INFO: Load project settings for component key: 'nb-underwriting-mailrtr:mailrouter' (done) | time=29ms INFO: Load project branches INFO: Load project branches (done) | time=29ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=15ms INFO: Load branch configuration INFO: Load branch configuration (done) | time=9ms INFO: Load project repositories INFO: Load project repositories (done) | time=164ms INFO: Load quality profiles INFO: Load quality profiles (done) | time=41ms INFO: Load active rules INFO: Load active rules (done) | time=731ms INFO: Branch name: chore/sonarqubeCoverageAdj, type: short living INFO: SCM collecting changed files in the branch INFO: SCM collecting changed files in the branch (done) | time=153ms INFO: Indexing files... INFO: Project configuration: INFO: Excluded sources: **/backout/**, **/config/**, **/Config/**, **/Application.*, **/test/** INFO: Excluded sources for coverage: **/test/**, **/api/**, **/queue/**, **/model/** INFO: 117 files indexed INFO: 0 files ignored because of inclusion/exclusion patterns INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for java: Sonar way INFO: ------------- Run sensors on module nb/underwriting/mailrtr/mailrouter INFO: Load metrics repository INFO: Load metrics repository (done) | time=33ms INFO: Sensor JavaSquidSensor [java] INFO: Configured Java source version (sonar.java.source): none INFO: JavaClasspath initialization WARN: Bytecode of dependencies was not provided for analysis of source files, you might end up with less precise results. Bytecode can be provided using sonar.java.libraries property. INFO: JavaClasspath initialization (done) | time=60ms INFO: JavaTestClasspath initialization INFO: JavaTestClasspath initialization (done) | time=10ms INFO: Java Main Files AST scan INFO: 60 source files to be analyzed INFO: 9/60 files analyzed, current file: src/main/java/com/nm/mailrouter/controller/MailMessageController.java INFO: 9/60 files analyzed, current file: src/main/java/com/nm/mailrouter/controller/MailMessageController.java INFO: 27/60 files analyzed, current file: src/main/java/com/nm/mailrouter/mail/handler/AlertsAndNotificationsHandler.java INFO: 59/60 files analyzed, current file: src/main/java/com/nm/mailrouter/service/AttachmentsService.java INFO: 60/60 source files have been analyzed WARN: Classes not found during the analysis : [com.amazonaws.services.sqs.AmazonSQS, io.swagger.annotations.ApiResponse, javax.jms.JMSException, javax.jms.Message, javax.mail.Address, javax.mail.MessagingException, javax.mail.Multipart, javax.mail.internet.ContentType, javax.mail.internet.InternetAddress, javax.mail.internet.MimeMessage, javax.mail.internet.MimeMultipart, org.slf4j.Logger, org.springframework.http.HttpHeaders, org.springframework.http.ResponseEntity, org.springframework.jms.core.JmsTemplate, org.springframework.web.bind.annotation.RequestMethod, org.springframework.web.client.HttpStatusCodeException] INFO: Java Main Files AST scan (done) | time=40767ms INFO: Java Test Files AST scan INFO: 0 source files to be analyzed INFO: Java Test Files AST scan (done) | time=0ms INFO: 0/0 source files have been analyzed INFO: Sensor JavaSquidSensor [java] (done) | time=42581ms INFO: Sensor SurefireSensor [java] INFO: parsing [/builds/nb/underwriting/mailrtr/mailrouter/build/test-results/test] INFO: Sensor SurefireSensor [java] (done) | time=435ms INFO: Sensor JaCoCoSensor [java] INFO: Sensor JaCoCoSensor [java] (done) | time=4ms INFO: Sensor JavaXmlSensor [java] INFO: 13 source files to be analyzed INFO: Sensor JavaXmlSensor [java] (done) | time=720ms INFO: 13/13 source files have been analyzed INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=31ms INFO: Sensor JaCoCo XML Report Importer [jacoco] INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=419ms INFO: ------------- Run sensors on project INFO: Sensor Zero Coverage Sensor INFO: Sensor Zero Coverage Sensor (done) | time=24ms INFO: Sensor Java CPD Block Indexer INFO: Sensor Java CPD Block Indexer (done) | time=429ms INFO: SCM provider for this project is: git INFO: 7 files to be analyzed INFO: 7/7 files analyzed INFO: 11 files had no CPD blocks INFO: Calculating CPD for 49 files INFO: CPD calculation finished INFO: SCM writing changed lines INFO: SCM writing changed lines (done) | time=532ms INFO: Analysis report generated in 922ms, dir size=387 KB INFO: Analysis report compressed in 228ms, zip size=146 KB INFO: Analysis report uploaded in 100ms INFO: ANALYSIS SUCCESSFUL, you can browse https://sonarqube.nmlv.nml.com/dashboard?id=nb-underwriting-mailrtr%3Amailrouter&branch=chore%2FsonarqubeCoverageAdj&resolved=false INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at https://sonarqube.nmlv.nml.com/api/ce/task?id=AXSyAk3nM8Bh2boAnsOm INFO: Executing post-job 'Final report' INFO: Turn debug info on to get more details (sonar-scanner -X -Dsonar.verbose=true ...). INFO: Executing post-job 'Final report' INFO: Turn debug info on to get more details (sonar-scanner -X -Dsonar.verbose=true ...). INFO: Analysis total time: 56.807 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 1:05.311s INFO: Final Memory: 50M/1956M INFO: ------------------------------------------------------------------------ $ result_url=$(grep ceTaskUrl .scannerwork/report-task.txt | cut -d '=' -f2-3) $ echo $result_url https://sonarqube.nmlv.nml.com/api/ce/task?id=AXSyAk3nM8Bh2boAnsOm $ taskResultStatus="NOT_RUN" $ attempt_counter=0 # collapsed multi-line command 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 587 100 587 0 0 17264 0 --:--:-- --:--:-- --:--:-- 17264 "SUCCESS" {"task":{"id":"AXSyAk3nM8Bh2boAnsOm","type":"REPORT","componentId":"AXSOPH9EM8Bh2boAnku4","componentKey":"nb-underwriting-mailrtr:mailrouter","componentName":"nb/underwriting/mailrtr/mailrouter","componentQualifier":"TRK","analysisId":"AXSyAlNctDGrY79uj8LP","status":"SUCCESS","submittedAt":"2020-09-21T18:52:09+0000","startedAt":"2020-09-21T18:52:10+0000","executedAt":"2020-09-21T18:52:11+0000","executionTimeMs":1044,"logs":false,"hasScannerContext":true,"organization":"default-organization","branch":"chore/sonarqubeCoverageAdj","branchType":"SHORT","warningCount":1,"warnings":[]}} $ echo $taskResultStatus "SUCCESS" $ analysisId=$(echo $taskResult | jq '.task.analysisId' | tr -d "\"") $ echo $analysisId AXSyAlNctDGrY79uj8LP $ analysisURL="https://sonarqube.nmlv.nml.com/api/qualitygates/project_status?analysisId=$analysisId" $ echo $analysisURL https://sonarqube.nmlv.nml.com/api/qualitygates/project_status?analysisId=AXSyAlNctDGrY79uj8LP $ analysisResultStatus=$(curl $analysisURL | jq '.projectStatus.status') % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 725 100 725 0 0 20714 0 --:--:-- --:--:-- --:--:-- 20714 $ echo $analysisResultStatus "OK" Running after_script 00:00 Saving cache 00:00 Uploading artifacts for successful job 00:00 Job succeeded