Skip to content

Fix logs not showing in Jenkins when log collection was enabled#327

Merged
albertvaka merged 1 commit into
masterfrom
albertvaka/fix-eating-logs
Feb 13, 2023
Merged

Fix logs not showing in Jenkins when log collection was enabled#327
albertvaka merged 1 commit into
masterfrom
albertvaka/fix-eating-logs

Conversation

@albertvaka

@albertvaka albertvaka commented Feb 8, 2023

Copy link
Copy Markdown
Collaborator

What does this PR do?

Simplifies the DatadogOutputStream by extending LineTransformationOutputStream.Delegating (which exists for this purpose) instead of the base LineTransformationOutputStream.

This fixes the problem where logs for a job would not show up in Jenkins if they were being sent to Datadog.

Fixes #324

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@sarah-witt sarah-witt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much! I tested this out and it works with the Pipeline stage view plugin

@albertvaka
albertvaka merged commit 418dbca into master Feb 13, 2023
@albertvaka
albertvaka deleted the albertvaka/fix-eating-logs branch February 13, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin configured with CI metrics prevents logs from being displayed in the pipeline stage view

2 participants