forked from AzureAppService/github-action-testapp-spring
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update azure-pipelines.yml for Azure Pipelines
- Loading branch information
Showing
1 changed file
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
# 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: | ||
- main | ||
- master | ||
|
||
pool: | ||
vmImage: windows-latest | ||
|
||
variables: | ||
buildConfiguration: 'Release' | ||
vmImage: ubuntu-latest | ||
|
||
steps: | ||
- task: AzureRmWebAppDeployment@4 | ||
- task: Maven@3 | ||
inputs: | ||
mavenPomFile: 'pom.xml' | ||
mavenOptions: '-Xmx3072m' | ||
javaHomeOption: 'JDKVersion' | ||
jdkVersionOption: '1.8' | ||
jdkArchitectureOption: 'x64' | ||
publishJUnitResults: true | ||
testResultsFiles: '**/surefire-reports/TEST-*.xml' | ||
goals: 'package' | ||
|
||
- task: CopyFiles@2 | ||
inputs: | ||
targetFolder: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: drop' | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: AzureWebApp@1 | ||
inputs: | ||
ConnectionType: 'AzureRM' | ||
azureSubscription: 'Private Test Sub YOONAOH(e65bd8ac-d28a-4218-a4bd-167c32a0a1f7)' | ||
appType: 'webApp' | ||
WebAppName: 'yo-webapp-devops' | ||
packageForLinux: '$(System.DefaultWorkingDirectory)/**/*.zip' | ||
appName: 'yo-webapp-devops' | ||
package: '$(Build.ArtifactStagingDirectory)' | ||
deploymentMethod: 'auto' |