four-key | measurement tool written with golang for your repositories | Functional Programming library
kandi X-RAY | four-key Summary
kandi X-RAY | four-key Summary
four-key is a measurement tool written with golang for your repositories. This project inspired from Accelerate book.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- GetHtml returns a HTML document .
- generateMetricFiles generates the files for the given metric results .
- onRun executes the command
- getTagCommitBetweenDates returns the list of tagCommitBetweenDates for the given date ranges
- onAddRepository handles add repo command
- generateOutput generates an HTML representation of the chart
- CalculateMetrics calculates the key - value pairs for the given repo .
- onRemoveRepository implements Command . OnRemoveRepository
- GetTagFixAndFeatureCommits returns a set of feature commits based on the date ranges
- onListRepositories handles list repositories .
four-key Key Features
four-key Examples and Code Snippets
Community Discussions
Trending Discussions on four-key
QUESTION
I would like to register the change lead time (one of the four key metrics) of different Jira tickets, that is to say, register the time since a ticket is created until it is fishished and the corresponding code reaches production.
The ticket creation event would be detected in Jira with a plugin, sending its information ({issueNumber: APP-001, creationDate: 2019-xx-xx...}
) to a datatake.
The feature would be considered finished when it starts a pipeline execution that reaches production:
Dev commits code using a comment referencing the issue
#APP-001 Finished feature
and pushes it to master.The Jenkins pipeline passes by different stages (build, test, deploy-uat) and finally executes the deproy-prod stage). If it finishes ok, it should register in the datalake the finished features included in the deployment.
To get the finished features I was thinking of getting commits that where included, examing their commit messages looking for the references to Jira tickets (APP-xxx).
However, my question is how can I get this list of commits? I have access to the whole git commit history but how can I get only the new commits added by the last push?
...ANSWER
Answered 2019-Jul-10 at 14:24I've found a straightforward way to determine the set of commits included in the current Jenkins build using the Jenkins API.
Inside the Jenkins pipeline execution we can call the Jenkins API (https://jenkins.myorg.com/job/[MY_GROUP]/job/[MY_PROJECT]/job/master/[BUILD_NUMBER]/api/json?tree=changeSets[\*[\*]]
) to get the information of the changeset that includes the list of new commits.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install four-key
Linux 64-bit: https://github.com/trendyol/
Windows 64-bit: https://github.com/trendyol/
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page