jenkinsci / datadog-plugin

A Jenkins plugin used to forward metrics, events, and service checks to an account at Datadog, automatically.
https://plugins.jenkins.io/datadog/
MIT License
30 stars 48 forks source link

Implement plugin data versioning #390

Closed nikita-tkachenko-datadog closed 6 months ago

nikita-tkachenko-datadog commented 6 months ago

Requirements for Contributing to this repository

What does this PR do?

Implements versioning mechanism for plugin data that is serialized to disk.

This helps to avoid deserializing data written by older versions of the plugin in a format that we do not support anymore (currently trying to do so may result in deserializing builds partially - as the result some of the data is not displayed properly in Jenkins UI).

Also, going forward it will be easy to change the data format by adding new converter versions (while ensuring the data written by older versions remains readable).

Description of the Change

Alternate Designs

Possible Drawbacks

Verification Process

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)