2023-02-24 09:23:45 -05:00
variables :
MAVEN_CACHE_FOLDER : $(Pipeline.Workspace)/.m2/repository
2020-06-12 17:17:33 -04:00
trigger : none
pr :
- master
- release
2022-05-31 11:49:03 -04:00
# Different users have different machine setups, we run the build three times, on ubuntu, osx, and windows.
# Azure doesn't always have the same Java versions on each system, so they are enumerated for each system independently.
2021-11-16 09:26:53 -05:00
jobs :
2023-02-24 09:23:45 -05:00
- job : setup
displayName : setup-and-cache-build
pool :
vmImage : ubuntu-latest
steps :
- checkout : self
fetchDepth : 1
- task : Cache@2
inputs :
key : maven | $(Build.BuildId)
path : $(MAVEN_CACHE_FOLDER)
- task : Bash@3
inputs :
targetType : 'inline'
script : mkdir -p $(MAVEN_CACHE_FOLDER); pwd; ls -al $(MAVEN_CACHE_FOLDER)
- task : Maven@3
inputs :
mavenPomFile : 'pom.xml'
mavenOptions : '-Xmx3072m'
options : '-pl "!org.hl7.fhir.validation.cli" -DskipTests -Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
javaHomeOption : 'JDKVersion'
jdkVersionOption : '1.11'
jdkArchitectureOption : 'x64'
publishJUnitResults : false
goals : 'install'
2021-11-16 09:26:53 -05:00
- template : pull-request-pipeline-parameterized.yml
parameters :
images :
2022-09-23 10:38:10 -04:00
# This image is here so that at least one job specifically sets Cp1252 file encodings, which are normally set by the JDK (which Azure can change on each latest image)
- displayName : ubuntu-latest-java-17-cp1252
vmImage : ubuntu-latest
jdkVersion : 1.17
javaToolOptions : -Dfile.encoding=Cp1252
- displayName : ubuntu-latest-java-11
vmImage : ubuntu-latest
jdkVersion : 1.11
javaToolOptions :
- displayName : ubuntu-latest-java-17
vmImage : ubuntu-latest
jdkVersion : 1.17
javaToolOptions :
- displayName : macos-latest-java-11
vmImage : macos-latest
jdkVersion : 1.11
javaToolOptions :
- displayName : macos-latest-java-17
vmImage : macos-latest
jdkVersion : 1.17
javaToolOptions :
- displayName : windows-latest-java-11
vmImage : windows-latest
jdkVersion : 1.11
javaToolOptions :
- displayName : windows-latest-java-17
vmImage : windows-latest
jdkVersion : 1.17
javaToolOptions :