Skip to content

Commit 91618c8

Browse files
Set up CI with Azure Pipelines
[skip ci]
1 parent c3aaa7f commit 91618c8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Maven
2+
# Build your Java project and run tests with Apache Maven.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
5+
6+
trigger:
7+
- master
8+
9+
pool:
10+
vmImage: ubuntu-latest
11+
12+
steps:
13+
- task: Maven@3
14+
inputs:
15+
mavenPomFile: 'pom.xml'
16+
mavenOptions: '-Xmx3072m'
17+
javaHomeOption: 'JDKVersion'
18+
jdkVersionOption: '1.8'
19+
jdkArchitectureOption: 'x64'
20+
publishJUnitResults: true
21+
testResultsFiles: '**/surefire-reports/TEST-*.xml'
22+
goals: 'package'
23+
24+
- task: AzureRmWebAppDeployment@4
25+
inputs:
26+
ConnectionType: 'AzureRM'
27+
azureSubscription: 'Azure Pass - Sponsorship(3)(14a75aff-b2a7-4e69-a805-5aa9e29b3839)'
28+
appType: 'webAppLinux'
29+
WebAppName: 'JavaAppAnuj'
30+
packageForLinux: '$(System.DefaultWorkingDirectory)/**/*.jar'
31+
RuntimeStack: 'JAVA|8-jre8'

0 commit comments

Comments
 (0)