Describe the bug
Logs normally displayed within the Pipeline stage view are no longer visible once the datadog plugin is installed and CI visibility is enabled as per official datadog docs.
Each of the stages will display the logs while the job is running, but as soon as the job finishes the logs modal becomes empty. This continues until the jenkins server is restarted, at which point you can see the logs for existing jobs (but will have the same issue for any newly triggered jobs)
To Reproduce
Steps to reproduce the behavior:
- In Jenkins 2.375.2 install the workflow-job, workflow-aggregator and datadog plugins with versions noted below
- Configure the datadog plugin to send CI metrics as per official datadog docs. (If you just install the plugin without configuring it, the issue disappears)
- Create a Jenkins pipeline with stages:

- Run the pipeline
- In the pipeline view, note you see the logs fore each stage while the job is still running:

- As soon as the job finishes, the logs for each stage can no longer be seen:
(There are no errors in the browser console nor network tab)
- If the server is restarted, the logs are visible again in the pipeline view. However, the error will repeat itself for any newly run jobs)
Expected behavior
The logs should continue to be visible in the pipeline view, even when the datadog plugin is installed and configured to capture CI metrics. Ie, after step 6 above (job finishes), the logs should continue to be visible in the pipeline view.
Environment and Versions (please complete the following information):
- jenkins: 2.375.2 (container jenkins/jenkins:2.375.2-lts)
- datadog-plugin: 5.2.0
- pipeline-stage-view: 2.29
- workflow-job: 1268.v6eb_e2ee1a_85a
- workflow-aggregator: 590.v6a_d052e5a_a_b_5
Additional context
- Datadog plugin configured to track CI metrics using environment variables:
- name: DATADOG_JENKINS_PLUGIN_REPORT_WITH
value: DSD
- name: DATADOG_JENKINS_PLUGIN_TARGET_HOST
value: datadog.datadog-agent.svc.cluster.local
- name: DATADOG_JENKINS_PLUGIN_TARGET_PORT
value: "8125"
- name: DATADOG_JENKINS_PLUGIN_ENABLE_CI_VISIBILITY
value: "true"
- name: DATADOG_JENKINS_PLUGIN_TARGET_TRACE_COLLECTION_PORT
value: "8126"
- name: DATADOG_JENKINS_PLUGIN_CI_VISIBILITY_CI_INSTANCE_NAME
value: jenkins-test
- Log injection is not enabled in the datadog plugin. Ie, I haven't applied the optional steps https://docs.datadoghq.com/continuous_integration/pipelines/jenkins/?tab=usingenvironmentvariables#enable-job-log-collection
- I have tried downgrading the datadog plugin to versions
4.0.0, 3.5.2 and 2.13.0. The problem still persists.
- Both jenkins and datadog agent hosted in Kubernetes. Jenkins deployed with the jenkins-operator and the datadog agent with the official helm chart.
Describe the bug
Logs normally displayed within the Pipeline stage view are no longer visible once the datadog plugin is installed and CI visibility is enabled as per official datadog docs.
Each of the stages will display the logs while the job is running, but as soon as the job finishes the logs modal becomes empty. This continues until the jenkins server is restarted, at which point you can see the logs for existing jobs (but will have the same issue for any newly triggered jobs)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The logs should continue to be visible in the pipeline view, even when the datadog plugin is installed and configured to capture CI metrics. Ie, after step 6 above (job finishes), the logs should continue to be visible in the pipeline view.
Environment and Versions (please complete the following information):
Additional context
4.0.0,3.5.2and2.13.0. The problem still persists.