Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Adding a new build variant

Martijn Verburg edited this page Nov 2, 2018 · 4 revisions

There are several steps required to add a new variant to build in ci.adoptopenjdk.net and be published on the website:

0. Create an issue in TSC

  1. Create an issue in the TSC asking to have your variant added. Please add which platforms you'd like supported, which versions of OpenJDK and what level of testing you'd like (jtreg + extras and/or system tests).

1. Add new repositories for storing releases

You typically need to create two new repositories for storing nightly builds and release builds. Some experimental variants (like the amber forest from OpenJDK) only need nightly builds.

  1. Create a releases repo using this link naming it openjdk{version}-{variant}-releases (e.g openjdk8-openj9-releases).
  2. Create a nightly repo using this link naming it openjdk{version}-{variant}-nightly (e.g openjdk8-openj9-nightly).
  3. On both of these newly created repos navigate to Settings, Collaborators and teams and add the GetOpenJDK team as Admin.

2. Modify the OpenJDK-Website-Backend Job

  1. To start polling the repo to check for new releases add a new block of code with your release details here.

3. Add the variant to the website

  1. Add a variant to the website config.json file here.

4. Add the variant to the api Wiki

  1. Add a variant to the api Wiki here.

5. Modify the release job

  1. Navigate to the job config here. If you don't have access ensure that you are logged in. You may also need to request access from an org owner.
  2. Modify the VERSION Choice parameter to add your new variant
  3. Add a new Conditional Step (single) for your variant. (See other variants for the correct values)

6. Modify the Release counter job

  1. Add a new line to the job here to gather download statistics for your variant.

7. Create nightly and/or release pipelines

You need to have Pipeline create / edit privileges for this.

TODO add details here. Contact gdams for information.