forked from saibabukota/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild-Java.yml
More file actions
34 lines (28 loc) · 924 Bytes
/
Build-Java.yml
File metadata and controls
34 lines (28 loc) · 924 Bytes
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
queue:
name: Hosted VS2017
demands: maven
#Your build pipeline references an undefined variable named ‘Parameters.mavenPOMFile’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
- task: Maven@2
displayName: Maven JavaApp/pom.xml
inputs:
mavenPomFile: 'JavaApp/pom.xml'
goals: 'clean package'
testResultsFiles: '**/TEST-*.xml '
testRunTitle: TestCase
- task: PublishTestResults@2
displayName: Publish Test Results **\TEST*.xml **\TEST*.java
inputs:
testResultsFiles: |
**\TEST*.xml
**\TEST*.java
- task: CopyFiles@2
displayName: Copy Files
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: |
**/*.jar
**/*.war
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: Publish Artifact