Use dependency resolution from pull pipeline

***NO_CI***
This commit is contained in:
dotasek 2023-03-02 13:51:45 -05:00 committed by GitHub
parent 19bcaa4ee6
commit d2cade4244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 11 deletions

View File

@ -8,14 +8,29 @@ trigger: none
pool: pool:
vmImage: ubuntu-latest vmImage: ubuntu-latest
steps: jobs:
- task: Maven@3 - job: setup
inputs: displayName: cache-maven-dependencies
mavenPomFile: 'pom.xml' pool:
mavenOptions: '-Xmx3072m' vmImage: ubuntu-latest
javaHomeOption: 'JDKVersion' steps:
jdkVersionOption: '1.8' - checkout: self
jdkArchitectureOption: 'x64' fetchDepth: 1
publishJUnitResults: true - task: Cache@2
testResultsFiles: '**/surefire-reports/TEST-*.xml' inputs:
goals: 'package' key: maven | $(Build.BuildId)
path: $(MAVEN_CACHE_FOLDER)
- task: Bash@3
inputs:
targetType: 'inline'
script: mkdir -p $(MAVEN_CACHE_FOLDER); pwd; ls -al $(MAVEN_CACHE_FOLDER)
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
options: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
goals: 'dependency:resolve'