This is to allow users to use a different Java
version for their Sonarqube builds.
Issue: RELENG-5099
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I7a0915bb41ec18e9eeed57f5049e72cacf4333f6
:disable-job: Whether to disable the job (default: false)
:git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
:github-url: URL for Github. (default: https://github.com)
+ :java-version: JDK version to use. (default: openjdk17)
:parallel: If different from false, try pass this parameter to tox option
"--parallel" to parallelize jobs in the envlist (and then activate the
option "--parallel-live" to display output in logs).
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ java-version: openjdk17
parallel: false
pre-build-script: "# pre-build script goes here"
python-version: python3
builders:
- lf-infra-pre-build
+ - lf-update-java-alternatives:
+ java-version: "{java-version}"
- lf-infra-tox-install:
python-version: "{python-version}"
- shell: "{pre-build-script}"
--- /dev/null
+---
+fixes:
+ - |
+ Add Java update alternatives step to allow users to use a different Java
+ version for their Sonarqube builds.