incubator-devlake
incubator-devlake copied to clipboard
[Feature][DORA] Support ScopeId in DoraOptions to generate deployment data by scope
Search before asking
- [X] I had searched in the issues and found no similar feature requirement.
Use case
As a Devops engineer, I want to collect data from a CICD data source (e.g. Jenkins), and use the collected CICD domain data in reports.
Description
There's 6 tables in CICD domain, currently CICD data source plugins collected pipeline and deployments from data sources, but haven't normalize deployment by the standard defined in CICD domain model. The task to normalize deployment data is defined in DORA plugin, but it has to work with Projects. When we don't have a project defined, we can't complete the CICD data process. (especially when using devlake through API)
We can add a optional ScopeId to DoraOptions, when it is set, deployment normalize tasks can use ScopeId rather than ProjectName to decide the range to data to process, if the ScopeId is undefined, behavior of these tasks stay the same, so the change is backward compatible.
Related issues
No response
Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct