Skip to content

Commit

Permalink
[test] try not using Cache@2
Browse files Browse the repository at this point in the history
  • Loading branch information
walterddr committed Mar 15, 2020
1 parent 1b628d4 commit 8e9f476
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions tools/azure-pipelines/jobs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:
# (usually because a pom file has changed), we'll fall back to a key without
# the pom files (CACHE_FALLBACK_KEY).
# Offical documentation of the Cache task: https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops
- task: Cache@2
inputs:
key: $(CACHE_KEY)
restoreKeys: $(CACHE_FALLBACK_KEY)
path: $(MAVEN_CACHE_FOLDER)
continueOnError: true # continue the build even if the cache fails.
displayName: Cache Maven local repo
# - task: Cache@2
# inputs:
# key: $(CACHE_KEY)
# restoreKeys: $(CACHE_FALLBACK_KEY)
# path: $(MAVEN_CACHE_FOLDER)
# continueOnError: true # continue the build even if the cache fails.
# displayName: Cache Maven local repo
- script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME_11_X64"
echo "##vso[task.setvariable variable=PATH]$JAVA_HOME_11_X64/bin:$PATH"
Expand Down Expand Up @@ -106,14 +106,14 @@ jobs:
artifact: FlinkCompileCacheDir-${{parameters.stage_name}}

# only for the python stage (which runs a full mvn install), download the cache
- task: Cache@2
condition: eq(variables['module'], 'python')
inputs:
key: $(CACHE_KEY)
restoreKeys: $(CACHE_FALLBACK_KEY)
path: $(MAVEN_CACHE_FOLDER)
continueOnError: true # continue the build even if the cache fails.
displayName: Cache Maven local repo
# - task: Cache@2
# condition: eq(variables['module'], 'python')
# inputs:
# key: $(CACHE_KEY)
# restoreKeys: $(CACHE_FALLBACK_KEY)
# path: $(MAVEN_CACHE_FOLDER)
# continueOnError: true # continue the build even if the cache fails.
# displayName: Cache Maven local repo
- script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME_11_X64"
echo "##vso[task.setvariable variable=PATH]$JAVA_HOME_11_X64/bin:$PATH"
Expand Down Expand Up @@ -144,13 +144,13 @@ jobs:
workspace:
clean: all
steps:
- task: Cache@2
inputs:
key: $(CACHE_KEY)
restoreKeys: $(CACHE_FALLBACK_KEY)
path: $(MAVEN_CACHE_FOLDER)
displayName: Cache Maven local repo
continueOnError: true
# - task: Cache@2
# inputs:
# key: $(CACHE_KEY)
# restoreKeys: $(CACHE_FALLBACK_KEY)
# path: $(MAVEN_CACHE_FOLDER)
# displayName: Cache Maven local repo
# continueOnError: true
- script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME_11_X64"
echo "##vso[task.setvariable variable=PATH]$JAVA_HOME_11_X64/bin:$PATH"
Expand Down

0 comments on commit 8e9f476

Please sign in to comment.