Skip to content

Commit

Permalink
Fix: Add Java update alternatives step
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jwagantall committed Jan 29, 2024
1 parent 42379db commit 766dbef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/jjb/lf-python-jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ Plug-in configurations
: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).
Expand Down
3 changes: 3 additions & 0 deletions jjb/lf-python-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@
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
Expand Down Expand Up @@ -828,6 +829,8 @@

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}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Add Java update alternatives step to allow users to use a different Java
version for their Sonarqube builds.

0 comments on commit 766dbef

Please sign in to comment.