forked from dsccommunity/DscWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines Cloud.yml
59 lines (50 loc) · 1.58 KB
/
azure-pipelines Cloud.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: $(BuildID)
trigger:
- '*'
pool:
name: Hosted VS2017
jobs:
- job: DscBuild
strategy:
parallel: 1
pool:
name: Default
workspace:
clean: all
steps:
- powershell: '.\Build.ps1 -ResolveDependency'
workingDirectory: DSC
displayName: 'Execute build.ps1'
- task: PublishTestResults@2
displayName: 'Publish Integration Test Results'
inputs:
testResultsFormat: NUnit
testResultsFiles: '**/IntegrationTestResults.xml'
failTaskOnFailedTests: true
- task: PublishBuildArtifacts@1
displayName: MOF
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\DSC\BuildOutput\MOF'
ArtifactName: MOF
- task: PublishBuildArtifacts@1
displayName: 'Meta MOF'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\DSC\BuildOutput\MetaMOF'
ArtifactName: 'Meta MOF'
- task: PublishBuildArtifacts@1
displayName: RSOP
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\DSC\BuildOutput\RSOP'
ArtifactName: RSOP
- task: PublishBuildArtifacts@1
condition: and(succeeded(), not(startsWith(variables['BHCommitMessage'], '--Added new node')))
displayName: 'Compressed Modules'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\DSC\BuildOutput\CompressedModules'
ArtifactName: 'Compressed Modules'
- task: PublishTestResults@2
displayName: 'Publish Build Acceptance Test Results'
inputs:
testResultsFormat: NUnit
testResultsFiles: '**/BuildAcceptanceTestResults.xml'
failTaskOnFailedTests: true