mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Set up CI with Azure Pipelines
[skip ci]
This commit is contained in:
parent
e2fbc56130
commit
f4c48d4b8f
1 changed files with 34 additions and 0 deletions
34
azure-pipelines.yml
Normal file
34
azure-pipelines.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
# Adding extra information into build name, to make it easier to identify builds.
|
||||
# It can be called using '$(Build.BuildNumber)'
|
||||
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
||||
jobs:
|
||||
- job: BuildTest
|
||||
displayName: Build and Test Maven Project
|
||||
steps:
|
||||
- task: Maven@3
|
||||
displayName: 'Maven Package'
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
mavenOptions: '-Xmx3072m'
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '1.11'
|
||||
jdkArchitectureOption: 'x64'
|
||||
publishJUnitResults: true
|
||||
testRunTitle: '$(Build.BuildNumber)'
|
||||
testResultsFiles: '**/TEST-*.xml'
|
||||
checkStyleRunAnalysis: true
|
||||
goals: 'package'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to artifact staging directory'
|
||||
inputs:
|
||||
SourceFolder: '$(System.DefaultWorkingDirectory)'
|
||||
Contents: '**/target/*.?(war|jar)'
|
||||
TargetFolder: $(Build.ArtifactStagingDirectory)
|
||||
- upload: $(Build.ArtifactStagingDirectory)
|
||||
artifact: drop
|
Loading…
Reference in a new issue