{"id":17044248,"url":"https://github.com/cburgmer/build-facts","last_synced_at":"2025-04-12T15:12:20.032Z","repository":{"id":136372026,"uuid":"200919573","full_name":"cburgmer/build-facts","owner":"cburgmer","description":"Dump your build pipeline's data for inspection","archived":false,"fork":false,"pushed_at":"2022-04-25T18:58:08.000Z","size":4099,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T15:12:12.014Z","etag":null,"topics":["ci","concourse","continuous-delivery","continuous-integration","gocd","jenkins","metrics","teamcity"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cburgmer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-06T20:25:44.000Z","updated_at":"2024-09-08T17:46:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0546291-1808-485a-99fe-01b038cef156","html_url":"https://github.com/cburgmer/build-facts","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cburgmer%2Fbuild-facts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cburgmer%2Fbuild-facts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cburgmer%2Fbuild-facts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cburgmer%2Fbuild-facts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cburgmer","download_url":"https://codeload.github.com/cburgmer/build-facts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586245,"owners_count":21128998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","concourse","continuous-delivery","continuous-integration","gocd","jenkins","metrics","teamcity"],"created_at":"2024-10-14T09:33:39.279Z","updated_at":"2025-04-12T15:12:20.025Z","avatar_url":"https://github.com/cburgmer.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build facts\n\nDownload build facts from different CI/CD servers in a standard JSON schema.\nYou then take it from there with your own analytics.\n\n    $ curl -LO https://github.com/cburgmer/build-facts/releases/download/0.6.1/build-facts-0.6.1-standalone.jar\n    $ java -jar build-facts-0.6.1-standalone.jar jenkins http://localhost:8080\n    Finding all builds for syncing from http://localhost:8080 (starting from 2021-01-06T23:00:00.000Z)...\n    {\"jobName\":\"Test\",\"buildId\":\"1\",\"start\":1615151319678,\"end\":1615151342243,\"outcome\":\"pass\",\"inputs\":[{\"revision\":\"9bb731de4f4372a8c3b4e53e7d70cd729b32419c\",\"sourceId\":\"https://github.com/cburgmer/buildviz.git\"}]}\n    {\"jobName\":\"Test\",\"buildId\":\"2\",\"start\":1615151342348,\"end\":1615151344854,\"outcome\":\"pass\",\"inputs\":[{\"revision\":\"9bb731de4f4372a8c3b4e53e7d70cd729b32419c\",\"sourceId\":\"https://github.com/cburgmer/buildviz.git\"}]}\n    {\"jobName\":\"Deploy\",\"buildId\":\"1\",\"start\":1615151349657,\"end\":1615151361672,\"outcome\":\"pass\",\"inputs\":[{\"revision\":\"9bb731de4f4372a8c3b4e53e7d70cd729b32419c\",\"sourceId\":\"TEST_GIT_COMMIT\"}],\"triggeredBy\":[{\"jobName\":\"Test\",\"buildId\":\"1\"},{\"jobName\":\"Test\",\"buildId\":\"2\"}]}\n    [...]\n\n## Why?\n\nIt's hard to innovate when every build server has their own format of reporting\nbuild data. By offering a more standard format, we hope that it becomes\nfeasible to share build analytics across users of different build servers.\nSee https://github.com/cburgmer/buildviz for an example on what is possible with\nthe current set of build properties.\n\n## Features\n\n- Streams standardized build data (specified via JSON Schema)\n- Splunk HEC format\n- Resume from previous sync\n- Output build data to files\n\n### Supported build servers\n\n| Build server | Start, end and outcome | Inputs | Triggered by | Test results | Tasks |\n| ------------ | ---------------------- | ------ | ------------ | ------------ | ----- |\n| Concourse    | ✓                      | ✓      | ✓            |              | ✓    |\n| GoCD         | ✓                      | ✓      | ✓            | ✓            |      |\n| Jenkins      | ✓                      | ✓      | ✓            | ✓            |      |\n| TeamCity     | ✓                      | ✓      | ✓            | ✓            |      |\n\nSee [BUILD_SERVERS.md](./BUILD_SERVERS.md) for detailed setup.\n\n## JSON schema\n\n[JSON Schema document](./resources/schema.json)\n\nExample:\n\n    {\n      \"jobName\": \"Deploy\",\n      \"buildId\": \"21\",\n      \"start\": 1451449853542,\n      \"end\": 1451449870555,\n      \"outcome\": \"pass\", /* or \"fail\" */\n      \"inputs\": [{\n        \"revision\": \"1eadcdd4d35f9a\",\n        \"sourceId\": \"git@github.com:cburgmer/buildviz.git\"\n      }],\n      \"triggeredBy\": [{\n        \"jobName\": \"Test\",\n        \"buildId\": \"42\"\n      }],\n      \"testResults\": [{\n        \"name\": \"Test Suite\",\n        \"children\": [{\n          \"classname\": \"some.class\",\n          \"name\": \"A Test\",\n          \"runtime\": 2,\n          \"status\": \"pass\"\n        }]\n      }],\n      \"tasks\":[{\n        \"name\": \"deploy-artifact\",\n        \"start\": 1451449853600,\n        \"end\": 1451449870500,\n        \"worker\":\"worker-fb7cf6b7ac4f\"\n      }]\n    }\n\n## Examples\n\nThis project ships with examples for every supported build server: [./examples](./examples/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcburgmer%2Fbuild-facts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcburgmer%2Fbuild-facts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcburgmer%2Fbuild-facts/lists"}