mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45: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)
|
||||
|
||||
jobs:
|
||||
- job: BuildTest
|
||||
displayName: Build and Test Maven Project
|
||||
- job: BuildTestDeploy
|
||||
displayName: Build Test and Deploy spring-petclinic Java Web App
|
||||
steps:
|
||||
- task: Maven@3
|
||||
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
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
pathToPublish: '$(Build.DefaultWorkingDirectory)/target'
|
||||
pathToPublish: '$(Build.ArtifactStagingDirectory)/target'
|
||||
artifactName: 'jar-artifact'
|
||||
publishLocation: 'Container' # Publishes inside Azure Pipelines artifact folder.
|
||||
parallel: true # Increased speed through multi-threaded copying.
|
||||
parallelCount: 8 # Dependent upon CPU capabilities.
|
||||
|
||||
- task: AzureWebApp@1
|
||||
displayName: Deploy spring-petclinic to Azure Web Apps service
|
||||
displayName: Deploy spring-petclinic to Azure Web App service
|
||||
inputs:
|
||||
azureSubscription: 'azure-svc-connection'
|
||||
appType: webAppLinux
|
||||
|
|
Loading…
Reference in a new issue