Skip to content

Commit 45bcebe

Browse files
committed
Update pipeline
1 parent d690630 commit 45bcebe

File tree

1 file changed

+41
-107
lines changed

1 file changed

+41
-107
lines changed
Lines changed: 41 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,50 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55

66
stages:
77
- stage: build
88
jobs:
99
- job: Build
10-
displayName: 'Build AppLocker Artifacts'
10+
displayName: "Build AppLocker Artifacts"
1111
pool:
1212
name: Default
1313
workspace:
1414
clean: all
1515
steps:
1616
- task: PowerShell@2
17-
name: build
18-
displayName: 'Download prerequisites'
17+
name: prereq
18+
displayName: "Download prerequisites"
1919
inputs:
20-
filePath: '.\build\vsts-prerequisites.ps1'
20+
filePath: '.\build\prerequisites.ps1'
2121
- task: PowerShell@2
22-
name: build
22+
name: validateyaml
2323
displayName: Validate Configuration Data
2424
inputs:
25-
filePath: '.\build\vsts-validate.ps1'
26-
arguments: '-TestType ConfigurationData'
25+
filePath: '.\build\validate.ps1'
26+
arguments: "-TestType ConfigurationData"
2727
- task: PowerShell@2
28-
name: build
28+
name: buildpolicy
2929
displayName: Build policy XML
3030
inputs:
31-
filePath: '.\build\vsts-build.ps1'
32-
arguments: '-IncludeRsop'
33-
31+
filePath: '.\build\build.ps1'
32+
arguments: "-IncludeRsop"
3433
- task: PublishBuildArtifacts@1
35-
displayName: 'Publish Policy XML Files'
34+
displayName: "Publish Policy XML Files"
3635
inputs:
37-
PathtoPublish: 'output/Policies'
36+
PathtoPublish: "output/Policies"
3837
ArtifactName: Policies
39-
4038
- task: PublishBuildArtifacts@1
41-
displayName: 'Publish Policy RSOP Files'
39+
displayName: "Publish Policy RSOP Files"
4240
inputs:
43-
PathtoPublish: 'output/Rsop'
41+
PathtoPublish: "output/Rsop"
4442
ArtifactName: Rsop
45-
4643
- stage: publish
4744
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
11945
jobs:
12046
- deployment: Prod
121-
displayName: Prodt Deployment
47+
displayName: Prod Deployment
12248
environment: Prod
12349
pool:
12450
name: Default
@@ -128,20 +54,28 @@ stages:
12854
runOnce:
12955
deploy:
13056
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

Comments
 (0)