mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-10 14:54:46 +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
|
trigger: none
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
@ -20,10 +15,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
key: maven | $(Build.BuildId) | artifacts
|
key: maven | $(Build.BuildId) | artifacts
|
||||||
path: $(MAVEN_CACHE_FOLDER)
|
path: $(MAVEN_CACHE_FOLDER)
|
||||||
- task: Cache@2
|
- template: cache-target-directory-task.yml
|
||||||
inputs:
|
parameters:
|
||||||
key: maven | $(Build.BuildId) | targets | convertors
|
targetModule: convertors
|
||||||
path: $(System.DefaultWorkingDirectory)/org.hl7.fhir.convertors/target/
|
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
inputs:
|
inputs:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user