Skip to content

Creating new jdkNNu (updates) repro mirror from the jdkNN release mirror

Andrew Leonard edited this page Oct 13, 2022 · 14 revisions

When and why?

When a new jdk release is created upstream eg.jdk-19, a new upstream repo is branch from jdk(head), so https://github.com/openjdk/jdk19, this is then mirrored to https://github.com/adoptium/jdk19. Once shipped upstream moves to development of updates for the following .0.N updates, this is done in a new repro https://github.com/openjdk/jdk19u, known as the "updates" repo. We need to create a new mirror for this "updates" repo after the initial release has been shipped.

How?

  1. Pre-req: You must have "write/push" access to the jdkNN github rep[ositories.
  2. Request a new "empty repo" from the Eclipse Help Desk, requesting a new empty https://github.com/adoptium/jdkNNu repository using the same team permissions as previous versions, eg:https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/2083
  3. Duplicate the jdkNN mirror to the new jdkNNu mirror repository:

git clone --bare https://github.com/adoptium/jdkNN

cd jdkNN.git

git push --mirror [email protected]:adoptium/jdkNNu.git

  1. Clone mirror-scripts locally:

git clone [email protected]:adoptium/mirror-scripts.git

cd mirror-scripts.git

  1. Run skara mirror script to update the new jdkNNu mirror to the latest upstream "updates" repository:

./skaraMirror.sh jdkNNu

Resolve any conflicts if needed.