I am not sure below things are possible or not?
I want to create a metric that measures how long does a commit take from its creation till to get into the master branch. This is not limited to bitbucket but using Jenkins I need to mesure below metrices too.
- Overall time taken by commit from commit to first successful build.
- avg. time taken by each commit to build on CI server.
- waiting/queuing time of each commit on the CI system.
- How many times a commit failed before a successful merge into main/master?
- How many times does the master branch run in a day on CI server?
- Total number of build in days from master as well as PR branch of each commit.
- Total successful or failed build for single commit until succesful deployment.