1
1
trigger :
2
2
branches :
3
3
include :
4
- - main
4
+ - main
5
5
6
6
stages :
7
7
- stage : build
8
8
jobs :
9
9
- job : Build
10
- displayName : ' Build AppLocker Artifacts'
10
+ displayName : " Build AppLocker Artifacts"
11
11
pool :
12
12
name : Default
13
13
workspace :
14
14
clean : all
15
15
steps :
16
16
- task : PowerShell@2
17
- name : build
18
- displayName : ' Download prerequisites'
17
+ name : prereq
18
+ displayName : " Download prerequisites"
19
19
inputs :
20
- filePath : ' .\build\vsts- prerequisites.ps1'
20
+ filePath : ' .\build\prerequisites.ps1'
21
21
- task : PowerShell@2
22
- name : build
22
+ name : validateyaml
23
23
displayName : Validate Configuration Data
24
24
inputs :
25
- filePath : ' .\build\vsts- validate.ps1'
26
- arguments : ' -TestType ConfigurationData'
25
+ filePath : ' .\build\validate.ps1'
26
+ arguments : " -TestType ConfigurationData"
27
27
- task : PowerShell@2
28
- name : build
28
+ name : buildpolicy
29
29
displayName : Build policy XML
30
30
inputs :
31
- filePath : ' .\build\vsts-build.ps1'
32
- arguments : ' -IncludeRsop'
33
-
31
+ filePath : ' .\build\build.ps1'
32
+ arguments : " -IncludeRsop"
34
33
- task : PublishBuildArtifacts@1
35
- displayName : ' Publish Policy XML Files'
34
+ displayName : " Publish Policy XML Files"
36
35
inputs :
37
- PathtoPublish : ' output/Policies'
36
+ PathtoPublish : " output/Policies"
38
37
ArtifactName : Policies
39
-
40
38
- task : PublishBuildArtifacts@1
41
- displayName : ' Publish Policy RSOP Files'
39
+ displayName : " Publish Policy RSOP Files"
42
40
inputs :
43
- PathtoPublish : ' output/Rsop'
41
+ PathtoPublish : " output/Rsop"
44
42
ArtifactName : Rsop
45
-
46
43
- stage : publish
47
44
dependsOn : build
48
- jobs :
49
- - deployment : Dev
50
- displayName : Dev Deployment
51
- environment : Dev
52
- pool :
53
- name : Default
54
- workspace :
55
- clean : all
56
- strategy :
57
- runOnce :
58
- deploy :
59
- steps :
60
- - download : None
61
-
62
- - task : DownloadBuildArtifacts@0
63
- displayName : ' Download Build Artifact: Rsop'
64
- inputs :
65
- buildType : ' current'
66
- artifactName : Rsop
67
- downloadPath : $(Build.SourcesDirectory)
68
- - task : DownloadBuildArtifacts@0
69
- displayName : ' Download Build Artifact: Policies'
70
- inputs :
71
- buildType : ' current'
72
- artifactName : Policies
73
- downloadPath : $(Build.SourcesDirectory)
74
- - task : PowerShell@2
75
- name : publishpolicies
76
- displayName : Publish policies
77
- inputs :
78
- filePath : ' .\build\vsts-publish.ps1'
79
- arguments : ' -OutputPath $(Build.SourcesDirectory)'
80
-
81
- - stage : DscDeploymentTest
82
- dependsOn :
83
- - build
84
- - DscDeploymentDev
85
- jobs :
86
- - deployment : Test
87
- displayName : Test Deployment
88
- environment : Test
89
- pool :
90
- name : Default
91
- workspace :
92
- clean : all
93
- strategy :
94
- runOnce :
95
- deploy :
96
- steps :
97
- - download : None
98
-
99
- - task : DownloadBuildArtifacts@0
100
- displayName : ' Download Build Artifact: MOF'
101
- inputs :
102
- buildType : ' current'
103
- artifactName : MOF
104
- downloadPath : $(Build.SourcesDirectory)
105
-
106
- - task : CopyFiles@2
107
- name : DeployMofsToPullServer
108
- displayName : ' Deploy MOF Files to Pull Server'
109
- inputs :
110
- SourceFolder : ' $(Build.SourcesDirectory)/MOF/$(Environment.Name)'
111
- Contents : ' **'
112
- TargetFolder : ' \\dscpull01\DscConfiguration'
113
- OverWrite : true
114
-
115
- - stage : DscDeploymentProd
116
- dependsOn :
117
- - build
118
- - DscDeploymentTest
119
45
jobs :
120
46
- deployment : Prod
121
- displayName : Prodt Deployment
47
+ displayName : Prod Deployment
122
48
environment : Prod
123
49
pool :
124
50
name : Default
@@ -128,20 +54,28 @@ stages:
128
54
runOnce :
129
55
deploy :
130
56
steps :
131
- - download : None
132
-
133
- - task : DownloadBuildArtifacts@0
134
- displayName : ' Download Build Artifact: MOF'
135
- inputs :
136
- buildType : ' current'
137
- artifactName : MOF
138
- downloadPath : $(Build.SourcesDirectory)
139
-
140
- - task : CopyFiles@2
141
- name : DeployMofsToPullServer
142
- displayName : ' Deploy MOF Files to Pull Server'
143
- inputs :
144
- SourceFolder : ' $(Build.SourcesDirectory)/MOF/$(Environment.Name)'
145
- Contents : ' **'
146
- TargetFolder : ' \\dscpull01\DscConfiguration'
147
- OverWrite : true
57
+ - download : None
58
+ - task : DownloadBuildArtifacts@0
59
+ displayName : " Download Build Artifact: Rsop"
60
+ inputs :
61
+ buildType : " current"
62
+ artifactName : Rsop
63
+ downloadPath : $(Build.SourcesDirectory)
64
+ - task : DownloadBuildArtifacts@0
65
+ displayName : " Download Build Artifact: Policies"
66
+ inputs :
67
+ buildType : " current"
68
+ artifactName : Policies
69
+ downloadPath : $(Build.SourcesDirectory)
70
+ - task : PowerShell@2
71
+ name : publishpolicies
72
+ displayName : Publish policies
73
+ inputs :
74
+ filePath : ' .\build\publish.ps1'
75
+ arguments : " -OutputPath $(Build.SourcesDirectory)"
76
+ - task : PowerShell@2
77
+ name : validateintegration
78
+ displayName : Validate Integration
79
+ inputs :
80
+ filePath : ' .\build\validate.ps1'
81
+ arguments : " -TestType Integration"
0 commit comments