Allow releasing stable-3.11 on java21

Although Gerrit stable-3.11 is officially supported on Java 21, the
build process currently defaults to Java 17 pending the approval of [1].

This change allows building and releasing Gerrit 3.11 on Java 21 by
passing --config=java21 through all relevant build steps, including the
WAR and API artifacts.

[1] https://gerrit-review.googlesource.com/c/gerrit/+/387837

Change-Id: I74acc5d230561f8d81ab2f115ba37e33bcd023aa
1 file changed
tree: 9295348562b234410d265104b0abd8824bc93c16
  1. jenkins/
  2. jenkins-docker/
  3. jenkins-internal/
  4. vars/
  5. .gitignore
  6. Jenkinsfile
  7. README.md
  8. yamllint-config.yaml
README.md

Gerrit CI scripts

Providing jobs

This project uses Jenkins Jobs Builder [1] to generate jobs from yaml descriptor files.

To add new jobs reuse existing templates, defaults etc. as much as possible. E.g. adding a job to build an additional branch of a project may be as easy as adding the name of the branch to an existing project.

To ensure well readable yaml-files, use yamllint [2] to lint the yaml-files. Yamllint can be downloaded using Python Pip:

pip3 install --require-hashes yamllint

To run the linter, execute this command from the project's root directory:

yamllint -c yamllint-config.yaml jenkins/**/*.yaml

Yamllint will not fix detected issues itself.

[1] https://docs.openstack.org/infra/jenkins-job-builder/index.html [2] https://pypi.org/project/yamllint/