Branch: refs/heads/albertvaka/worker-hostname-env-var-fallback
  Home:   https://github.com/jenkinsci/datadog-plugin
  Commit: 9d5c1b62623c9d20fd1c2211ce22d3bc4f9ab6e1
      
https://github.com/jenkinsci/datadog-plugin/commit/9d5c1b62623c9d20fd1c2211ce22d3bc4f9ab6e1
  Author: Albert Vaca Cintora <[email protected]>
  Date:   2023-02-09 (Thu, 09 Feb 2023)

  Changed paths:
    M src/main/java/org/datadog/jenkins/plugins/datadog/model/StepData.java
    M 
src/main/java/org/datadog/jenkins/plugins/datadog/traces/DatadogTraceBuildLogic.java
    M 
src/main/java/org/datadog/jenkins/plugins/datadog/traces/DatadogWebhookBuildLogic.java

  Log Message:
  -----------
  Try to read hostname from env if not in updatedBuildData

If a job has no child stages (eg: in a freestyle job), updatedBuildData
will never actually be updated, so even if we are in a worker node
everything we read from it will be the main node's info. When this
happens, try to read the hostname from the DD_CI_HOSTNAME env var directly.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/datadog-plugin/push/refs/heads/albertvaka/worker-hostname-env-var-fallback/4e0b2c-9d5c1b%40github.com.

Reply via email to