Repository navigation
Closed
Description
jenkins/core/src/main/java/jenkins/telemetry/Telemetry.java
Lines 203 to 213 in 186151e
| JSONObject data = new JSONObject(); | |
| try { | |
| data = telemetry.createContent(); | |
| } catch (RuntimeException e) { | |
| LOGGER.log(Level.WARNING, "Failed to build telemetry content for: '" + telemetry.getId() + "'", e); | |
| } | |
| if (data == null) { | |
| LOGGER.log(Level.CONFIG, "Skipping telemetry for '" + telemetry.getId() + "' as it has no data"); | |
| return; | |
| } |
An exception thrown on line 205 results in the submission of empty payload instead of skipping it.
Originally reported by
danielbeck, imported from: Failure to collect telemetry submits empty payload
- assignee:
danielbeck
- status: Closed
- priority: Minor
- component(s): core
- label(s): 2.387.1-fixed
- resolution: Fixed
- resolved: 2023-02-07T13:21:43+00:00
- votes: 0
- watchers: 1
- imported: 2025-11-24
Raw content of original issue
jenkins/core/src/main/java/jenkins/telemetry/Telemetry.java
Lines 203 to 213 in 186151e
JSONObject data = new JSONObject(); try { data = telemetry.createContent(); } catch (RuntimeException e) { LOGGER.log(Level.WARNING, "Failed to build telemetry content for: '" + telemetry.getId() + "'", e); } if (data == null) { LOGGER.log(Level.CONFIG, "Skipping telemetry for '" + telemetry.getId() + "' as it has no data"); return; } An exception thrown on line 205 results in the submission of empty payload instead of skipping it.
Activity
jenkins-infra-bot commentedon Feb 1, 2023
Remote link associated with this issue: