Mask re-usable cache task

This commit is contained in:
dotasek 2023-03-31 17:01:54 -04:00
parent 0a385a1366
commit 9dce8b3e02
2 changed files with 12 additions and 9 deletions

View 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/

View File

@ -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'