From a63f17e82816a16135afbfaeb1a0c5caff928458 Mon Sep 17 00:00:00 2001 From: Nikita Tkachenko Date: Tue, 27 Feb 2024 16:07:51 +0100 Subject: [PATCH] Use payload_version instead of version --- .../plugins/datadog/traces/DatadogWebhookBuildLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/datadog/jenkins/plugins/datadog/traces/DatadogWebhookBuildLogic.java b/src/main/java/org/datadog/jenkins/plugins/datadog/traces/DatadogWebhookBuildLogic.java index 39107c52..96af837a 100644 --- a/src/main/java/org/datadog/jenkins/plugins/datadog/traces/DatadogWebhookBuildLogic.java +++ b/src/main/java/org/datadog/jenkins/plugins/datadog/traces/DatadogWebhookBuildLogic.java @@ -60,7 +60,7 @@ public JSONObject toJson(final BuildData buildData, final Run run) { .orElse(normalizeTag(rawGitBranch)); JSONObject payload = new JSONObject(); - payload.put("version", buildData.getVersion()); + payload.put("payload_version", buildData.getVersion()); payload.put("level", PipelineStepData.StepType.PIPELINE.getBuildLevel()); payload.put("url", buildData.getBuildUrl(""));