diff --git a/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java b/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java index ff8b16b7..c67b13ee 100644 --- a/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java +++ b/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java @@ -119,7 +119,7 @@ public void onInitialize(Run run) { BuildSpanManager.get().put(buildData.getBuildTag(""), buildSpanContext); TraceSpan.TraceSpanContext upstreamBuildSpanContext = null; - String upstreamBuildTag = buildData.getUpstreamBuildTag(""); + String upstreamBuildTag = buildData.getUpstreamBuildTag(null); if (upstreamBuildTag != null) { // try to find upstream build context saved earlier upstreamBuildSpanContext = BuildSpanManager.get().get(upstreamBuildTag);