mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-08 05:48:12 +00:00
* Refactor master pipeline * Try cacheing target too * Setup signing as template * Change to steps * Actually use cached maven for deploy * Optionally set up signing files during initial build * Split deployment to parallel jobs * Split deployment to parallel jobs * Add more signing options * Shift settings.xml to temp directory * Shift settings.xml to temp directory 2 * Temporary debug mode * Skip install... we already did it * deploy:deploy * jar:jar * Add deploy improvements to github deploy * Remove debug in sonatype deploy
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
jobs:
|
|
- job: setup
|
|
displayName: Cache Maven Artifacts and Build Targets
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
- task: Cache@2
|
|
displayName: Cache maven artifacts
|
|
inputs:
|
|
key: maven | $(Build.BuildId) | artifacts
|
|
path: $(MAVEN_CACHE_FOLDER)
|
|
- template: cache-target-tasks-template.yml
|
|
parameters:
|
|
modules:
|
|
${{ parameters.modulesToCache }}
|
|
- task: Bash@3
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: mkdir -p $(MAVEN_CACHE_FOLDER); pwd; ls -al $(MAVEN_CACHE_FOLDER)
|
|
- ${{ if eq(parameters.signArtifacts, true) }}:
|
|
- template: setup-signing-tasks-template.yml
|
|
- task: Maven@3
|
|
inputs:
|
|
mavenPomFile: 'pom.xml'
|
|
${{ if eq(parameters.signArtifacts, true) }}:
|
|
options: '--settings $(Agent.TempDirectory)/settings.xml -Dmaven.repo.local=$(MAVEN_CACHE_FOLDER) -DskipTests -DdeployToSonatype'
|
|
${{ else }}:
|
|
options: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER) -DskipTests'
|
|
mavenOptions: '-Xmx3072m'
|
|
javaHomeOption: 'JDKVersion'
|
|
jdkVersionOption: '1.11'
|
|
jdkArchitectureOption: 'x64'
|
|
publishJUnitResults: false
|
|
goals: 'install' |