From 059f3baf77fdfb48b4da1df9d20677c647024fc1 Mon Sep 17 00:00:00 2001 From: Paolo Patierno Date: Fri, 20 Dec 2024 14:49:02 +0100 Subject: [PATCH] Fixed missing Java 17 installation on deploy job Signed-off-by: Paolo Patierno --- .azure/templates/jobs/deploy_java.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.azure/templates/jobs/deploy_java.yaml b/.azure/templates/jobs/deploy_java.yaml index 0a6a74bc1..346a9a7cc 100644 --- a/.azure/templates/jobs/deploy_java.yaml +++ b/.azure/templates/jobs/deploy_java.yaml @@ -1,6 +1,13 @@ jobs: - job: 'deploy_java' displayName: 'Deploy Java' + # Strategy for the job + strategy: + matrix: + 'java-17': + image: 'Ubuntu-22.04' + jdk_version: '17' + main_build: 'true' # Set timeout for jobs timeoutInMinutes: 60 # Base system @@ -8,6 +15,7 @@ jobs: vmImage: 'Ubuntu-22.04' # Pipeline steps steps: + - template: '../steps/prerequisites/install_java.yaml' - task: DownloadPipelineArtifact@2 inputs: source: '${{ parameters.artifactSource }}'