{"id":16012976,"url":"https://github.com/bootjp/jenkins_consecutive_fail_detector","last_synced_at":"2025-03-17T20:30:45.020Z","repository":{"id":52555665,"uuid":"326897870","full_name":"bootjp/jenkins_consecutive_fail_detector","owner":"bootjp","description":"Modern systems and jobs are complex, and jobs can fail due to various system reasons. However, it's a bit noisy to get a failure notification every time a job can be retried. This tool ignores the job being retried and only notifies you when certain conditions are met.","archived":false,"fork":false,"pushed_at":"2025-03-10T03:52:56.000Z","size":7430,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T04:33:18.506Z","etag":null,"topics":["ci","detector","jenkins","notification"],"latest_commit_sha":null,"homepage":"https://note.com/bootjp/n/n85298c8957b4","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bootjp.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-01-05T05:38:12.000Z","updated_at":"2025-03-10T03:52:36.000Z","dependencies_parsed_at":"2023-02-03T22:01:43.829Z","dependency_job_id":"13008df0-04f5-426c-9711-8ad36bbd936e","html_url":"https://github.com/bootjp/jenkins_consecutive_fail_detector","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fjenkins_consecutive_fail_detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fjenkins_consecutive_fail_detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fjenkins_consecutive_fail_detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootjp%2Fjenkins_consecutive_fail_detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bootjp","download_url":"https://codeload.github.com/bootjp/jenkins_consecutive_fail_detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878483,"owners_count":20362433,"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","detector","jenkins","notification"],"created_at":"2024-10-08T14:23:10.278Z","updated_at":"2025-03-17T20:30:44.685Z","avatar_url":"https://github.com/bootjp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# jenkins_consecutive_fail_detector\n\u003ca href=\"https://codeclimate.com/github/bootjp/jenkins_consecutive_fail_detector/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/73689e32f0fd15762eb6/maintainability\" /\u003e\u003c/a\u003e\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fbootjp%2Fjenkins_consecutive_fail_detector.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbootjp%2Fjenkins_consecutive_fail_detector?ref=badge_shield)\n\n\nModern systems and jobs are complex, and jobs can fail due to various system reasons.\nHowever, it's a bit noisy to get a failure notification every time a job can be retried.\nThis tool ignores the job being retried and only notifies you when certain conditions are met.\n\nThe conditions for notification are\n\n- More than n consecutive errors occur in a specific job.\n- There is no job running even if n hours have passed since the failed build of the specific job.\n\n\n## How to use\n\n### install with go get\n\n```bash\ngo get github.com/bootjp/jenkins_consecutive_fail_detector\n```\n\n### install release binary (x86)\n```bash\ncurl -LO https://github.com/bootjp/jenkins_consecutive_fail_detector/releases/latest/download/jenkins_consecutive_fail_detector-linux-amd64\nchmod +x jenkins_consecutive_fail_detector-linux-amd64\n```\n\n### running check\n```bash\nJENKINS_USER=\"login_user\" JENKINS_TOKEN=\"secret_token\" jenkins_consecutive_fail_detector -url https://example.com:8080/jenkins\n# or \nJENKINS_USER=\"login_user\" JENKINS_PASSWORD=\"login_password\" jenkins_consecutive_fail_detector -url https://example.com:8080/jenkins \n```\n\n### Slack notification\n\n- Add environment value `SLACK_WEBHOOK` are enable slack webhook.\n- Add environment value `SLACK_USERNAME` modify notify slack username.\n- Add environment value `SLACK_CHANNNEL` modify notify slack channel.\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fbootjp%2Fjenkins_consecutive_fail_detector.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbootjp%2Fjenkins_consecutive_fail_detector?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootjp%2Fjenkins_consecutive_fail_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootjp%2Fjenkins_consecutive_fail_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootjp%2Fjenkins_consecutive_fail_detector/lists"}