Carbon Black cloud 2.2.9 release #2979
Merged
Jenkins EKS - SOAR / Jenkins
succeeded
Nov 25, 2024 in 5m 20s
Success
SonarQube Analysis / Shell Script
Error in sh
step, with arguments /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube/bin/sonar-scanner -Dsonar.host.url=https://sonarqube.build.r7ops.com/ -Dsonar.projectKey=insightconnect-plugins -Dsonar.projectName=insightconnect-plugins
.
script returned exit code 1
Build log
[2024-11-25T14:45:21.270Z] + /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube/bin/sonar-scanner -Dsonar.host.url=https://sonarqube.build.r7ops.com/ -Dsonar.projectKey=insightconnect-plugins -Dsonar.projectName=insightconnect-plugins
[2024-11-25T14:45:21.271Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
[2024-11-25T14:45:21.271Z] INFO: Scanner configuration file: /home/jenkins/agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQube/conf/sonar-scanner.properties
[2024-11-25T14:45:21.271Z] INFO: Project root configuration file: NONE
[2024-11-25T14:45:21.271Z] INFO: SonarScanner 5.0.1.3006
[2024-11-25T14:45:21.271Z] INFO: Java 17.0.13 Eclipse Adoptium (64-bit)
[2024-11-25T14:45:21.271Z] INFO: Linux 6.1.115-126.197.amzn2023.x86_64 amd64
[2024-11-25T14:45:21.531Z] INFO: User cache: /home/jenkins/.sonar/cache
[2024-11-25T14:45:22.463Z] INFO: Analyzing on SonarQube server 10.7.0.96327
[2024-11-25T14:45:22.463Z] INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
[2024-11-25T14:45:23.025Z] INFO: Load global settings
[2024-11-25T14:45:23.281Z] INFO: Load global settings (done) | time=100ms
[2024-11-25T14:45:23.281Z] INFO: Server id: 3482B4BD-AYxjbeHzB0-CTE8TC-sh
[2024-11-25T14:45:23.281Z] INFO: Loading required plugins
[2024-11-25T14:45:23.281Z] INFO: Load plugins index
[2024-11-25T14:45:23.281Z] INFO: Load plugins index (done) | time=16ms
[2024-11-25T14:45:23.281Z] INFO: Load/download plugins
[2024-11-25T14:45:23.549Z] INFO: Load/download plugins (done) | time=454ms
[2024-11-25T14:45:23.805Z] INFO: Loaded core extensions: developer-scanner, sca
[2024-11-25T14:45:24.061Z] INFO: Process project properties
[2024-11-25T14:45:24.061Z] INFO: Process project properties (done) | time=1ms
[2024-11-25T14:45:24.061Z] INFO: Project key: insightconnect-plugins
[2024-11-25T14:45:24.061Z] INFO: Base dir: /home/jenkins/agent/workspace/carbon-black-cloud-2.2.9-release
[2024-11-25T14:45:24.061Z] INFO: Working dir: /home/jenkins/agent/workspace/carbon-black-cloud-2.2.9-release/.scannerwork
[2024-11-25T14:45:24.061Z] INFO: Load project settings for component key: 'insightconnect-plugins'
[2024-11-25T14:45:24.061Z] INFO: Load project branches
[2024-11-25T14:45:24.061Z] INFO: Load project branches (done) | time=6ms
[2024-11-25T14:45:24.061Z] INFO: Load branch configuration
[2024-11-25T14:45:24.061Z] INFO: Detected branch/PR in 'Jenkins'
[2024-11-25T14:45:24.061Z] INFO: Auto-configuring branch 'carbon-black-cloud-2.2.9-release'
[2024-11-25T14:45:24.061Z] INFO: Load branch configuration (done) | time=2ms
[2024-11-25T14:45:24.061Z] INFO: Load quality profiles
[2024-11-25T14:45:24.061Z] INFO: Load quality profiles (done) | time=48ms
[2024-11-25T14:45:24.061Z] INFO: Auto-configuring with CI 'Jenkins'
[2024-11-25T14:45:24.061Z] INFO: Load active rules
[2024-11-25T14:45:26.578Z] INFO: Load active rules (done) | time=2290ms
[2024-11-25T14:45:26.578Z] INFO: Load analysis cache
[2024-11-25T14:45:26.578Z] INFO: Load analysis cache (404) | time=6ms
[2024-11-25T14:45:26.578Z] INFO: Branch name: carbon-black-cloud-2.2.9-release
[2024-11-25T14:45:26.578Z] INFO: Preprocessing files...
[2024-11-25T14:45:29.863Z] INFO: 4 languages detected in 14891 preprocessed files
[2024-11-25T14:45:29.863Z] INFO: 1 file ignored because of scm ignore settings
[2024-11-25T14:45:29.863Z] INFO: Loading plugins for detected languages
[2024-11-25T14:45:29.863Z] INFO: Load/download plugins
[2024-11-25T14:45:30.790Z] INFO: Load/download plugins (done) | time=749ms
[2024-11-25T14:45:30.790Z] INFO: Load project repositories
[2024-11-25T14:45:30.790Z] INFO: Load project repositories (done) | time=5ms
[2024-11-25T14:45:30.790Z] INFO: Indexing files...
[2024-11-25T14:45:30.790Z] INFO: Project configuration:
[2024-11-25T14:45:31.718Z] INFO: 14891 files indexed
[2024-11-25T14:45:31.718Z] INFO: Quality profile for docker: Sonar way
[2024-11-25T14:45:31.718Z] INFO: Quality profile for json: Sonar way
[2024-11-25T14:45:31.718Z] INFO: Quality profile for py: Sonar way
[2024-11-25T14:45:31.718Z] INFO: Quality profile for yaml: Sonar way
[2024-11-25T14:45:31.718Z] INFO: ------------- Run sensors on module insightconnect-plugins
[2024-11-25T14:45:31.718Z] INFO: Load metrics repository
[2024-11-25T14:45:31.718Z] INFO: Load metrics repository (done) | time=16ms
[2024-11-25T14:45:32.645Z] INFO: Sensor Python Sensor [python]
[2024-11-25T14:45:32.645Z] WARN: Your code is analyzed as compatible with all Python 3 versions by default. You can get a more precise analysis by setting the exact Python version in your configuration via the parameter "sonar.python.version"
[2024-11-25T14:45:33.222Z] INFO: Starting global symbols computation
[2024-11-25T14:45:33.223Z] INFO: 9554 source files to be analyzed
[2024-11-25T14:45:43.169Z] INFO: 4337/9554 files analyzed, current file: plugins/checkpoint_ngfw/icon_checkpoint_ngfw/actions/check_if_address_in_group/action.py
[2024-11-25T14:45:53.119Z] WARN: Invalid character encountered in file /home/jenkins/agent/workspace/carbon-black-cloud-2.2.9-release/plugins/url_encoder/unit_test/test_decode.py at line 86 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
[2024-11-25T14:45:53.119Z] INFO: 9554/9554 source files have been analyzed
[2024-11-25T14:45:53.375Z] INFO: Starting rules execution
[2024-11-25T14:45:53.375Z] INFO: 9554 source files to be analyzed
[2024-11-25T14:46:03.359Z] INFO: 359/9554 files analyzed, current file: plugins/cortex_v2/icon_cortex_v2/actions/bulk_analyze/action.py
[2024-11-25T14:46:13.330Z] INFO: 889/9554 files analyzed, current file: plugins/git/komand_git/actions/add_file/schema.py
[2024-11-25T14:46:23.288Z] INFO: 1392/9554 files analyzed, current file: plugins/pagerduty/komand_pagerduty/actions/send_resolve_event/action.py
[2024-11-25T14:46:35.464Z] INFO: 1895/9554 files analyzed, current file: plugins/p0f/komand_p0f/actions/run/action.py
[2024-11-25T14:46:43.552Z] INFO: 2384/9554 files analyzed, current file: plugins/aws_ec2/icon_aws_ec2/actions/revoke_security_group_ingress/schema.py
[2024-11-25T14:46:53.499Z] INFO: 2881/9554 files analyzed, current file: plugins/samanage/komand_samanage/actions/attach_incident/schema.py
[2024-11-25T14:47:03.442Z] INFO: 3344/9554 files analyzed, current file: plugins/joe_sandbox/icon_joe_sandbox/actions/__init__.py
[2024-11-25T14:47:13.385Z] INFO: 3804/9554 files analyzed, current file: plugins/mcafee_epo/komand_mcafee_epo/actions/get_policies/action.py
[2024-11-25T14:47:23.328Z] INFO: 4248/9554 files analyzed, current file: plugins/carbon_black_cloud/unit_test/responses/__init__.py
[2024-11-25T14:47:33.270Z] INFO: 4667/9554 files analyzed, current file: plugins/ipqualityscore/icon_ipqualityscore/tasks/__init__.py
[2024-11-25T14:47:45.439Z] INFO: 5086/9554 files analyzed, current file: plugins/trendmicro_visionone/icon_trendmicro_visionone/actions/update_custom_script/action.py
[2024-11-25T14:47:53.523Z] INFO: 5489/9554 files analyzed, current file: plugins/twitter/komand_twitter/triggers/messages/trigger.py
[2024-11-25T14:48:03.516Z] INFO: 5904/9554 files analyzed, current file: plugins/uniq/komand_uniq/connection/schema.py
[2024-11-25T14:48:13.457Z] INFO: 6294/9554 files analyzed, current file: plugins/wazuh_ossec/komand_wazuh_ossec/actions/manager_info/__init__.py
[2024-11-25T14:48:23.398Z] INFO: 6664/9554 files analyzed, current file: plugins/type_converter/icon_type_converter/actions/string_to_integer/schema.py
[2024-11-25T14:48:33.339Z] INFO: 7042/9554 files analyzed, current file: plugins/google_drive/unit_test/test_find_file_by_name.py
[2024-11-25T14:48:43.297Z] INFO: 7415/9554 files analyzed, current file: plugins/azure_blob_storage/icon_azure_blob_storage/connection/connection.py
[2024-11-25T14:48:55.463Z] INFO: 7782/9554 files analyzed, current file: plugins/graphite/icon_graphite/actions/metrics_index/schema.py
[2024-11-25T14:49:03.549Z] INFO: 8142/9554 files analyzed, current file: plugins/servicenow/icon_servicenow/actions/get_vulnerability/schema.py
[2024-11-25T14:49:13.490Z] INFO: 8483/9554 files analyzed, current file: plugins/azure_sentinel/icon_azure_sentinel/actions/get_indicator/__init__.py
[2024-11-25T14:49:23.430Z] INFO: 8828/9554 files analyzed, current file: plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/schema.py
[2024-11-25T14:49:33.401Z] INFO: 9177/9554 files analyzed, current file: plugins/misp/komand_misp/actions/search_events/action.py
[2024-11-25T14:49:43.343Z] INFO: 9514/9554 files analyzed, current file: plugins/paloalto_wildfire/komand_paloalto_wildfire/actions/submit_url/action.py
[2024-11-25T14:49:44.707Z] INFO: 9554/9554 source files have been analyzed
[2024-11-25T14:49:44.708Z] INFO: The Python analyzer was able to leverage cached data from previous analyses for 0 out of 9554 files. These files were not parsed.
[2024-11-25T14:49:44.708Z] INFO: Sensor Python Sensor [python] (done) | time=252238ms
[2024-11-25T14:49:44.708Z] INFO: Sensor Cobertura Sensor for Python coverage [python]
[2024-11-25T14:49:45.634Z] INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=1077ms
[2024-11-25T14:49:45.634Z] INFO: Sensor PythonXUnitSensor [python]
[2024-11-25T14:49:46.999Z] INFO: Sensor PythonXUnitSensor [python] (done) | time=1082ms
[2024-11-25T14:49:46.999Z] INFO: Sensor JaCoCo XML Report Importer [jacoco]
[2024-11-25T14:49:46.999Z] 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
[2024-11-25T14:49:46.999Z] INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[2024-11-25T14:49:46.999Z] INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
[2024-11-25T14:49:46.999Z] INFO: Sensor IaC CloudFormation Sensor [iac]
[2024-11-25T14:49:46.999Z] INFO: 0 source files to be analyzed
[2024-11-25T14:49:46.999Z] INFO: 0/0 source files have been analyzed
[2024-11-25T14:49:46.999Z] INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=210ms
[2024-11-25T14:49:46.999Z] INFO: Sensor IaC Kubernetes Sensor [iac]
[2024-11-25T14:49:47.255Z] INFO: 0 source files to be parsed
[2024-11-25T14:49:47.255Z] INFO: 0/0 source files have been parsed
[2024-11-25T14:49:47.255Z] INFO: 0 source files to be analyzed
[2024-11-25T14:49:47.255Z] INFO: 0/0 source files have been analyzed
[2024-11-25T14:49:47.255Z] INFO: 0 source files to be checked
[2024-11-25T14:49:47.255Z] INFO: 0/0 source files have been checked
[2024-11-25T14:49:47.255Z] INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=125ms
[2024-11-25T14:49:47.255Z] INFO: Sensor IaC AzureResourceManager Sensor [iac]
[2024-11-25T14:49:47.255Z] INFO: 0 source files to be analyzed
[2024-11-25T14:49:47.255Z] INFO: 0/0 source files have been analyzed
[2024-11-25T14:49:47.255Z] INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=64ms
[2024-11-25T14:49:47.255Z] INFO: Sensor Java Config Sensor [iac]
[2024-11-25T14:49:47.255Z] INFO: 0 source files to be analyzed
[2024-11-25T14:49:47.255Z] INFO: 0/0 source files have been analyzed
[2024-11-25T14:49:47.255Z] INFO: Sensor Java Config Sensor [iac] (done) | time=48ms
[2024-11-25T14:49:47.255Z] INFO: Sensor JavaScript inside YAML analysis [javascript]
[2024-11-25T14:49:47.817Z] INFO: No input files found for analysis
[2024-11-25T14:49:47.817Z] INFO: Hit the cache for 0 out of 0
[2024-11-25T14:49:47.817Z] INFO: Miss the cache for 0 out of 0
[2024-11-25T14:49:47.817Z] INFO: Sensor JavaScript inside YAML analysis [javascript] (done) | time=430ms
[2024-11-25T14:49:47.817Z] INFO: Sensor CSS Rules [javascript]
[2024-11-25T14:49:47.817Z] INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[2024-11-25T14:49:47.817Z] INFO: Sensor CSS Rules [javascript] (done) | time=11ms
[2024-11-25T14:49:47.817Z] INFO: Sensor Python HTML templates processing [securitypythonfrontend]
[2024-11-25T14:49:48.378Z] INFO: Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=599ms
[2024-11-25T14:49:48.378Z] INFO: Sensor IaC Docker Sensor [iac]
[2024-11-25T14:49:48.378Z] INFO: 266 source files to be analyzed
[2024-11-25T14:49:49.304Z] INFO: 266/266 source files have been analyzed
[2024-11-25T14:49:49.304Z] INFO: Sensor IaC Docker Sensor [iac] (done) | time=1044ms
[2024-11-25T14:49:49.304Z] INFO: Sensor Serverless configuration file sensor [security]
[2024-11-25T14:49:49.304Z] INFO: 0 Serverless function entries were found in the project
[2024-11-25T14:49:49.304Z] INFO: 0 Serverless function handlers were kept as entrypoints
[2024-11-25T14:49:49.304Z] INFO: Sensor Serverless configuration file sensor [security] (done) | time=13ms
[2024-11-25T14:49:49.304Z] INFO: Sensor AWS SAM template file sensor [security]
[2024-11-25T14:49:49.560Z] INFO: Sensor AWS SAM template file sensor [security] (done) | time=123ms
[2024-11-25T14:49:49.560Z] INFO: Sensor AWS SAM Inline template file sensor [security]
[2024-11-25T14:49:49.560Z] INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=98ms
[2024-11-25T14:49:49.560Z] INFO: Sensor javabugs [dbd]
[2024-11-25T14:49:49.560Z] INFO: Reading IR files from: /home/jenkins/agent/workspace/carbon-black-cloud-2.2.9-release/.scannerwork/ir/java
[2024-11-25T14:49:49.560Z] INFO: No IR files have been included for analysis.
[2024-11-25T14:49:49.560Z] INFO: Sensor javabugs [dbd] (done) | time=1ms
[2024-11-25T14:49:49.560Z] INFO: Sensor pythonbugs [dbd]
[2024-11-25T14:49:49.816Z] INFO: Reading IR files from: /home/jenkins/agent/workspace/carbon-black-cloud-2.2.9-release/.scannerwork/ir/python
[2024-11-25T14:49:50.071Z] INFO: Analyzing 13386 functions to detect bugs.
[2024-11-25T14:50:02.246Z] INFO: ------------------------------------------------------------------------
[2024-11-25T14:50:02.246Z] INFO: EXECUTION FAILURE
[2024-11-25T14:50:02.246Z] INFO: ------------------------------------------------------------------------
[2024-11-25T14:50:02.246Z] INFO: Total time: 4:40.733s
[2024-11-25T14:50:02.246Z] INFO: Final Memory: 264M/884M
[2024-11-25T14:50:02.246Z] INFO: ------------------------------------------------------------------------
[2024-11-25T14:50:02.246Z] ERROR: Error during SonarScanner execution
[2024-11-25T14:50:02.247Z] java.lang.OutOfMemoryError: Java heap space
[2024-11-25T14:50:02.247Z] at java.base/java.util.Arrays.copyOf(Unknown Source)
[2024-11-25T14:50:02.247Z] at java.base/java.util.ArrayDeque.grow(Unknown Source)
[2024-11-25T14:50:02.247Z] at java.base/java.util.ArrayDeque.addFirst(Unknown Source)
[2024-11-25T14:50:02.247Z] at java.base/java.util.ArrayDeque.push(Unknown Source)
[2024-11-25T14:50:02.247Z] at com.sonarsource.A.A.X.A(na:1273)
[2024-11-25T14:50:02.247Z] at com.sonarsource.A.G.executeChecks(na:1082)
[2024-11-25T14:50:02.247Z] at com.sonarsource.A.G.executeSensor(na:2561)
[2024-11-25T14:50:02.247Z] at com.sonarsource.A.G.execute(na:1586)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:64)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:82)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:226)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:205)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:204)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:200)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:173)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:226)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:205)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.bootstrap.SpringScannerContainer.doAfterStart(SpringScannerContainer.java:351)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:226)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:205)
[2024-11-25T14:50:02.247Z] at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:144)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:226)
[2024-11-25T14:50:02.247Z] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:205)
[2024-11-25T14:50:02.247Z] at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:73)
[2024-11-25T14:50:02.247Z] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
[2024-11-25T14:50:02.247Z] at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
[2024-11-25T14:50:02.247Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2024-11-25T14:50:02.247Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2024-11-25T14:50:02.247Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2024-11-25T14:50:02.247Z] at java.base/java.lang.reflect.Method.invoke(Unknown Source)
[2024-11-25T14:50:02.248Z] ERROR:
[2024-11-25T14:50:02.248Z] ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
Details
- Declarative: Checkout SCM (12 sec)
- Setup Python virtual environment and tooling (0.8 sec)
- Retrieve git tag on SCM (0.81 sec)
- Retrieve plugin details and announce release (0.75 sec)
- Build plugin image using buildpacks (0.7 sec)
- Initialize plugin release (0.72 sec)
- SonarQube Analysis (4 min 45 sec)
Error: script returned exit code 1 - Declarative: Post Actions (3.9 sec)
Loading