{"id":16375828,"url":"https://github.com/citymonstret/jenkins4j","last_synced_at":"2026-03-06T21:31:37.245Z","repository":{"id":81338122,"uuid":"167179288","full_name":"Citymonstret/Jenkins4J","owner":"Citymonstret","description":"Simple and effective Jenkins API wrapper written in Java","archived":false,"fork":false,"pushed_at":"2019-04-13T10:41:02.000Z","size":192,"stargazers_count":13,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-23T01:06:28.948Z","etag":null,"topics":["api","java","jenkins"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Citymonstret.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":"2019-01-23T12:25:42.000Z","updated_at":"2020-09-06T20:36:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"17c1fdb2-664d-47be-8aff-75fe76f3403f","html_url":"https://github.com/Citymonstret/Jenkins4J","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Citymonstret/Jenkins4J","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citymonstret%2FJenkins4J","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citymonstret%2FJenkins4J/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citymonstret%2FJenkins4J/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citymonstret%2FJenkins4J/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Citymonstret","download_url":"https://codeload.github.com/Citymonstret/Jenkins4J/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Citymonstret%2FJenkins4J/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","java","jenkins"],"created_at":"2024-10-11T03:22:19.513Z","updated_at":"2026-03-06T21:31:37.226Z","avatar_url":"https://github.com/Citymonstret.png","language":"Java","funding_links":["https://www.paypal.me/Sauilitired"],"categories":[],"sub_categories":[],"readme":"# Jenkins4J\nSimple and effective non-blocking Jenkins API wrapper written in Java\n\n#### What can it do?\nJenkins4J supports the following actions:\n- Get all publicly (or protected, using authentication) available jobs from a Jenkins instance\n- Parse job data for builds and metadata\n- Parse job data for artifacts and metadata\n\n#### How does it work?\nJenkins4J uses the Jenkins [remote access JSON API](https://wiki.jenkins.io/display/JENKINS/Remote+access+API)\n(in the future, XML support *may* be added). [Retrofit](https://github.com/square/retrofit) is used\nas the HTTP client, [Gson](https://github.com/google/gson) is used for JSON deserialization and \ngeneral [Guava](https://github.com/google/guava) utilities are used throughout Jenkins4J.\n\n#### How to use it?\nIn order to get started, create a new `Jenkins` instance using a `JenkinsBuilder`, like this:\n```java\nfinal Jenkins jenkins = Jenkins.newBuilder().withPath(\"https://your.jenkins.path/\").build();\n```\n\nIf you need to authenticate against the Jenkins server, use the `withBasicAuthentication` method in\nthe Jenkins builder\n\nUsing this instance, you can fetch the master node, available jobs, specific job information and/or\nspecific build information. \n\nThere are two types of objects that you will encounter when working with Jenkins4J:\n- description\n- info\n\nA description is a simple member of an info class, and it will often just contain a name or a number.\nYou can use a description to get a (`CompletableFuture of`) an information class. Information classes\ncontain references to child nodes, and a bunch of meta data. This is to mirror how the Jenkins API works.\n\nYou can use description classes to retrieve their corresponding information classes, by using `getParent()`.\nAll information classes can also be retrieved using the Jenkins instance.\n\nRetrieval of objects will always be non-blocking, and return `CompletableFuture`'s. \n\n##### Examples\nExamples can be found in the [examples](https://github.com/Sauilitired/Jenkins4J/tree/master/examples/) directory.\\\nJavaDoc can be found in the [docs](https://github.com/Sauilitired/Jenkins4J/tree/master/docs/) directory.\n\n##### Maven\nJenkins4J is using the JitPack maven repository. \n\n![JitPack Badge](https://jitpack.io/v/Sauilitired/Jenkins4J.svg)\n\nTo use it, add the following repository:\n```xml\n\u003crepository\u003e\n    \u003cid\u003ejitpack.io\u003c/id\u003e\n    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n```\nand the following dependency:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.Sauilitired\u003c/groupId\u003e\n    \u003cartifactId\u003eJenkins4J\u003c/artifactId\u003e\n    \u003cversion\u003e3.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n##### Jenkins\nJenkins4J is on Jenkins. The job can be found [here](https://ci.athion.net/job/Jenkins4J/)! \n\n### Contributions \u0026amp; Contact\nContributions are very welcome! The project uses the \n[Google Java](https://google.github.io/styleguide/javaguide.html) code style. The project is licensed \nunder the MIT license.\n\nIf you have any further questions or feedback, then feel free to join our [Discord](https://discord.gg/ngZCzbU).\\\nIf the project helped you, then you are free to give me some coffee money via [PayPal](https://www.paypal.me/Sauilitired)\n:coffee:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitymonstret%2Fjenkins4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitymonstret%2Fjenkins4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitymonstret%2Fjenkins4j/lists"}