diff --git a/.azure/templates/jobs/deploy_java.yaml b/.azure/templates/jobs/deploy_java.yaml index 0a6a74bc..346a9a7c 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 }}'