mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
32de58ba0c
commit
226366c9ae
1 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@ pool:
|
||||||
name: $(Build.DefinitionName).$(SourceBranchName).$(Date:yyyyMMdd)$(Rev:.r)
|
name: $(Build.DefinitionName).$(SourceBranchName).$(Date:yyyyMMdd)$(Rev:.r)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildTest
|
- job: BuildTestDeploy
|
||||||
displayName: Build and Test Maven Project
|
displayName: Build Test and Deploy spring-petclinic Java Web App
|
||||||
steps:
|
steps:
|
||||||
- task: Maven@3
|
- task: Maven@3
|
||||||
displayName: 'Maven Package'
|
displayName: 'Maven Package'
|
||||||
|
@ -41,14 +41,14 @@ jobs:
|
||||||
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/publish-build-artifacts?view=azure-devops
|
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/publish-build-artifacts?view=azure-devops
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs:
|
inputs:
|
||||||
pathToPublish: '$(Build.DefaultWorkingDirectory)/target'
|
pathToPublish: '$(Build.ArtifactStagingDirectory)/target'
|
||||||
artifactName: 'jar-artifact'
|
artifactName: 'jar-artifact'
|
||||||
publishLocation: 'Container' # Publishes inside Azure Pipelines artifact folder.
|
publishLocation: 'Container' # Publishes inside Azure Pipelines artifact folder.
|
||||||
parallel: true # Increased speed through multi-threaded copying.
|
parallel: true # Increased speed through multi-threaded copying.
|
||||||
parallelCount: 8 # Dependent upon CPU capabilities.
|
parallelCount: 8 # Dependent upon CPU capabilities.
|
||||||
|
|
||||||
- task: AzureWebApp@1
|
- task: AzureWebApp@1
|
||||||
displayName: Deploy spring-petclinic to Azure Web Apps service
|
displayName: Deploy spring-petclinic to Azure Web App service
|
||||||
inputs:
|
inputs:
|
||||||
azureSubscription: 'azure-svc-connection'
|
azureSubscription: 'azure-svc-connection'
|
||||||
appType: webAppLinux
|
appType: webAppLinux
|
||||||
|
|
Loading…
Reference in a new issue