mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
Mask re-usable cache task
This commit is contained in:
parent
0a385a1366
commit
9dce8b3e02
9
cache-target-directory-task.yml
Normal file
9
cache-target-directory-task.yml
Normal file
@ -0,0 +1,9 @@
|
||||
parameters:
|
||||
- name: targetModule
|
||||
displayName: 'Target module in project'
|
||||
type: string
|
||||
|
||||
- task: Cache@2
|
||||
inputs:
|
||||
key: maven | $(Build.BuildId) | targets | ${{ parameters.targetModule }}
|
||||
path: $(System.DefaultWorkingDirectory)/${{ parameters.targetModule }}/target/
|
@ -1,8 +1,3 @@
|
||||
# Maven
|
||||
# Build your Java project and run tests with Apache Maven.
|
||||
# Add steps that analyze code, save build artifacts, deploy, and more:
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
|
||||
|
||||
trigger: none
|
||||
|
||||
pool:
|
||||
@ -20,10 +15,9 @@ jobs:
|
||||
inputs:
|
||||
key: maven | $(Build.BuildId) | artifacts
|
||||
path: $(MAVEN_CACHE_FOLDER)
|
||||
- task: Cache@2
|
||||
inputs:
|
||||
key: maven | $(Build.BuildId) | targets | convertors
|
||||
path: $(System.DefaultWorkingDirectory)/org.hl7.fhir.convertors/target/
|
||||
- template: cache-target-directory-task.yml
|
||||
parameters:
|
||||
targetModule: convertors
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
|
Loading…
x
Reference in New Issue
Block a user