Branch: refs/heads/albertvaka/worker-hostname-env-var-fallback Home: https://github.com/jenkinsci/datadog-plugin Commit: 4e0b2cdbb47a188ab4fccc8854ff39e05d9fc966 https://github.com/jenkinsci/datadog-plugin/commit/4e0b2cdbb47a188ab4fccc8854ff39e05d9fc966 Author: Albert Vaca Cintora <albert.v...@datadoghq.com> 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/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 jenkinsci-commits+unsubscr...@googlegroups.com. 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/000000-4e0b2c%40github.com.