28 lines
730 B
YAML
28 lines
730 B
YAML
# 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:
|
|
- master
|
|
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
|
|
steps:
|
|
- task: DownloadSecureFile@1
|
|
name: mvnSettings
|
|
displayName: 'Download Maven settings'
|
|
inputs:
|
|
secureFile: 'maven-azuredevops-settings.xml'
|
|
- task: Maven@3
|
|
inputs:
|
|
mavenPomFile: 'pom.xml'
|
|
goals: 'deploy'
|
|
options: '-s $(mvnSettings.secureFilePath)'
|
|
mavenAuthenticateFeed: true
|
|
publishJUnitResults: true
|
|
testResultsFiles: '**/TEST-*.xml'
|
|
javaHomeOption: 'JDKVersion'
|
|
jdkVersionOption: '1.21'
|
|
mavenVersionOption: 'Default' |