-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
43 lines (39 loc) · 1.35 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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
jobs:
- job: YauheniPoGitHubTest
pool:
vmImage: $(vmImageVar)
# vmImage: 'vs2017-win2016'
# vmImage: 'Ubuntu 16.04'
# vmImage: 'macOS-10.13'
steps:
- script: ls
displayName: ls command
- task: Maven@3
displayName: Maven Package
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
goals: 'clean compile -Dbrowser=firefox -DbrowseHeadless=true test site -Dmaven.wagon.http.pool=false'
- task: PublishBuildArtifacts@1
displayName: Publish Build Artifacts
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)'
name: 'drop'
# Publish Test Results to Azure Pipelines/TFS
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '**/TEST-*.xml'
searchFolder: '$(System.DefaultWorkingDirectory)'
mergeTestResults: false # Optional
failTaskOnFailedTests: true # Optional
publishRunAttachments: true # Optional