{"id":15045329,"url":"https://github.com/jenkinsci/adoptopenjdk-plugin","last_synced_at":"2025-07-27T02:10:01.672Z","repository":{"id":36548073,"uuid":"186439740","full_name":"jenkinsci/adoptopenjdk-plugin","owner":"jenkinsci","description":"Install Eclipse Temurin™ build of OpenJDK","archived":false,"fork":false,"pushed_at":"2025-06-30T02:33:36.000Z","size":185,"stargazers_count":18,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-30T03:35:28.205Z","etag":null,"topics":["jdk","jdk-autoinstaller","jenkins-plugin","temurin"],"latest_commit_sha":null,"homepage":"https://plugins.jenkins.io/adoptopenjdk/","language":"Java","has_issues":false,"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/jenkinsci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-13T14:48:30.000Z","updated_at":"2025-06-30T02:33:32.000Z","dependencies_parsed_at":"2024-04-01T16:29:39.820Z","dependency_job_id":"fa658891-b0bc-45c4-b0c9-eea310d188ff","html_url":"https://github.com/jenkinsci/adoptopenjdk-plugin","commit_stats":{"total_commits":96,"total_committers":10,"mean_commits":9.6,"dds":0.6875,"last_synced_commit":"71e02f5912de8f7d00e002c336fa62eade5677dd"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jenkinsci/adoptopenjdk-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fadoptopenjdk-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fadoptopenjdk-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fadoptopenjdk-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fadoptopenjdk-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenkinsci","download_url":"https://codeload.github.com/jenkinsci/adoptopenjdk-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fadoptopenjdk-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267285815,"owners_count":24064228,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["jdk","jdk-autoinstaller","jenkins-plugin","temurin"],"created_at":"2024-09-24T20:51:44.437Z","updated_at":"2025-07-27T02:10:01.666Z","avatar_url":"https://github.com/jenkinsci.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eclipse Temurin\u0026reg; JDK installer plugin\n\nProvides an installer for the JDK tool that downloads the Eclipse Temurin\u0026reg; build based upon OpenJDK from the [Adoptium Working Group](https://adoptium.net/).\n\n## Usage recommendations\n\nWe want to warn that this plugin is **NOT** a good practice for production environments. As it relies on\nAdoptium's website to do the job, it's highly likely to stop working. It could happen because Adoptium's website\nchanges or even if Adoptium bans our downloads due to excessive bandwidth usage or some other reason.\nCurrently Adoptium is using GitHub for hosting release archives and GitHub could also stop working due to similar\nreasons.\n\nThe recommended and preferred approach is to download the JDK distribution using other installers, for example downloading it from a\nwell known URL (preferably hosted on your own network) with _ZIP Tool Installer_, having it pre-installed in agent\ndocker images, or executing a script to do the job.\n\n## Configure plugin with [Configuration as Code](https://plugins.jenkins.io/configuration-as-code/)\n\nThe [configuration as code plugin](https://plugins.jenkins.io/configuration-as-code/) allows administrators to automate Jenkins configuration.\nThe sample configuration below defines tool installers based on agent labels, and uses\n\n* locally hosted Java installers for Linux and Windows agents (assuming local domain in `example.com`)\n* locally installed Java on agents with the `Alpine` label\n* locally installed Java on agents with the `cloud` label\n* locally installed Java on agents with the `freebsd` label\n\nIf none of those installers are selected, then as a fallback, the agent will download the specified Java version from the Eclipse Temurin\u0026reg; project.\n\nThe example shows the preference to first use locally available zip files and local installations of the JDK.\nThe JDK will be downloaded from the Eclipse Temurin project only in cases where the local installation is not available or does not apply.\n\n```yaml\ntool:\n  jdk:\n    installations:\n    - name: \"jdk17\"\n      properties:\n      - installSource:\n          installers:\n          - zip:\n              label: \"linux \u0026\u0026 amd64 \u0026\u0026 !Alpine \u0026\u0026 !cloud\"\n              subdir: \"jdk-17.0.15+6\"\n              url: \"https://example.com/jdk/17/OpenJDK17U-jdk_x64_linux_hotspot_17.0.14_7.tar.gz\"\n          - zip:\n              label: \"linux \u0026\u0026 amd64 \u0026\u0026 Alpine \u0026\u0026 !cloud\"\n              subdir: \"jdk-17.0.15+6\"\n              url: \"https://example.com/jdk/17/OpenJDK17U-jdk_x64_alpine-linux_hotspot_17.0.15_6.tar.gz\"\n          - zip:\n              label: \"windows \u0026\u0026 amd64\"\n              subdir: \"jdk-17.0.15+6\"\n              url: \"https://example.com/jdk/17/OpenJDK17U-jdk_x64_windows_hotspot_17.0.15_6.zip\"\n          - command:\n              command: \"true\"\n              label: \"cloud\"\n              toolHome: \"/home/jenkins/tools/jdk-17.0.15+6\"\n          - command:\n              command: \"true\"\n              label: \"freebsd\"\n              toolHome: \"/usr/local/openjdk17\"\n          - adoptOpenJdkInstaller:\n              id: \"jdk-17.0.15+6\"\n    - name: \"jdk21\"\n      properties:\n      - installSource:\n          installers:\n          - zip:\n              label: \"linux \u0026\u0026 amd64 \u0026\u0026 !Alpine \u0026\u0026 !cloud\"\n              subdir: \"jdk-21.0.7+6\"\n              url: \"https://example.com/jdk/21/OpenJDK21U-jdk_x64_linux_hotspot_21.0.7_6.tar.gz\"\n          - zip:\n              label: \"linux \u0026\u0026 amd64 \u0026\u0026 Alpine \u0026\u0026 !cloud\"\n              subdir: \"jdk-21.0.7+6\"\n              url: \"https://example.com/jdk/21/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.7_6.tar.gz\"\n          - zip:\n              label: \"windows \u0026\u0026 amd64\"\n              subdir: \"jdk-21.0.7+6\"\n              url: \"https://example.com/jdk/21/OpenJDK21U-jdk_x64_windows_hotspot_21.0.7_6.zip\"\n          - command:\n              command: \"true\"\n              label: \"cloud\"\n              toolHome: \"/home/jenkins/tools/jdk-21.0.7+6\"\n          - adoptOpenJdkInstaller:\n              id: \"jdk-21.0.7+6\"\n```\n\n## Configure plugin via Groovy script\n\nEither automatically upon [Jenkins post-initialization](https://www.jenkins.io/doc/book/managing/groovy-hook-scripts/) or through\n[Jenkins script console](https://www.jenkins.io/doc/book/managing/script-console/), example:\n\n```groovy\n#!/usr/bin/env groovy\nimport hudson.model.JDK\nimport hudson.tools.InstallSourceProperty\nimport io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller\nimport jenkins.model.Jenkins\n\nfinal versions = [\n        'jdk8' : 'jdk8u452-b09',\n        'jdk11': 'jdk-11.0.27+6',\n        'jdk17': 'jdk-17.0.15+6',\n        'jdk21': 'jdk-21.0.7+6',\n]\n\nJenkins.instance.getDescriptor(hudson.model.JDK).with {\n    installations = versions.collect {\n        new JDK(it.key, '', [\n                new InstallSourceProperty([\n                        new AdoptOpenJDKInstaller(it.value)\n                ])\n        ])\n    } as JDK[]\n\n}\n```\n\n## Changelog\n\nChanges in each release are described in [GitHub releases](https://github.com/jenkinsci/adoptopenjdk-plugin/releases).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkinsci%2Fadoptopenjdk-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenkinsci%2Fadoptopenjdk-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkinsci%2Fadoptopenjdk-plugin/lists"}