Skip to content

Do not map "unstable" status to "success"#331

Merged
albertvaka merged 2 commits into
masterfrom
albertvaka/allow-unstable
Feb 16, 2023
Merged

Do not map "unstable" status to "success"#331
albertvaka merged 2 commits into
masterfrom
albertvaka/allow-unstable

Conversation

@albertvaka

@albertvaka albertvaka commented Feb 15, 2023

Copy link
Copy Markdown
Collaborator

What does this PR do?

When the result of a job, stage or pipeline is unstable, do not map it to success when sending webhooks. The webhooks intake now accepts unstable as a status. This lets us remove the two different mappings (jenkins result -> ci visibility status) we had depending on whether we send webhooks or traces.

It also removes some unused variables and imports, sorry if it adds a bit of noise to the PR.

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.

drodriguezhdez
drodriguezhdez previously approved these changes Feb 16, 2023

@drodriguezhdez drodriguezhdez 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.

LGTM

Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
@albertvaka
albertvaka merged commit 4b3aeaa into master Feb 16, 2023
@albertvaka
albertvaka deleted the albertvaka/allow-unstable branch February 16, 2023 14:56
@albertvaka albertvaka added the changelog/Changed Changed features results into a major version bump label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/Changed Changed features results into a major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants