Fix: Add Java update alternatives step 88/72588/4 v0.89.9
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 29 Jan 2024 22:59:05 +0000 (14:59 -0800)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 29 Jan 2024 23:43:37 +0000 (15:43 -0800)
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

docs/jjb/lf-python-jobs.rst
jjb/lf-python-jobs.yaml
releasenotes/notes/update-sonarqube-java-alternatives-e85ec6a90aa2a99e.yaml [new file with mode: 0644]

index d7553ec..5df0e26 100644 (file)
@@ -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).
index 4eb134b..18268eb 100644 (file)
     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}"
diff --git a/releasenotes/notes/update-sonarqube-java-alternatives-e85ec6a90aa2a99e.yaml b/releasenotes/notes/update-sonarqube-java-alternatives-e85ec6a90aa2a99e.yaml
new file mode 100644 (file)
index 0000000..e820ff1
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Add Java update alternatives step to allow users to use a different Java
+    version for their Sonarqube builds.