1515stages :
1616 - stage : Build
1717 jobs :
18- - job : BuildModuleJob
18+ - job : Package_Module
19+ displayName : ' Package Module'
1920 pool :
2021 vmImage : ' ubuntu 16.04'
2122 steps :
2223 - task : GitVersion@5
2324 name : gitversion
25+ displayName : ' Evaluate Next Version'
2426 inputs :
2527 runtime : ' core'
2628 configFilePath : ' GitVersion.yml'
2729
2830 - task : PowerShell@2
29- name : Build
31+ name : package
32+ displayName : ' Build & Package Module'
3033 inputs :
3134 filePath : ' ./build.ps1'
3235 arguments : ' -Tasks pack -ResolveDependency'
3336 pwsh : true
3437 env :
35- ModuleVersion : $(GitVersion .Informationalversion)
38+ ModuleVersion : $(gitVersion .Informationalversion)
3639
3740 - task : PublishBuildArtifacts@1
41+ displayName : ' Publish Build Artifact'
3842 inputs :
3943 PathtoPublish : ' output/'
4044 ArtifactName : ' output'
@@ -44,11 +48,13 @@ stages:
4448 dependsOn : Build
4549 jobs :
4650 - job : Test_HQRM
51+ displayName : ' HQRM'
4752 pool :
4853 vmImage : ' win1803'
4954 timeoutInMinutes : 0
5055 steps :
5156 - task : DownloadBuildArtifacts@0
57+ displayName : ' Download Build Artifact'
5258 inputs :
5359 buildType : ' current'
5460 downloadType : ' single'
@@ -57,19 +63,22 @@ stages:
5763
5864 - task : PowerShell@2
5965 name : Test
66+ displayName : ' Run HQRM Test'
6067 inputs :
6168 filePath : ' ./build.ps1'
6269 arguments : ' -Tasks hqrmtest'
6370 pwsh : false
6471
6572 - task : PublishTestResults@2
73+ displayName : ' Publish Test Results'
6674 inputs :
6775 testResultsFormat : ' NUnit'
6876 testResultsFiles : ' output/testResults/NUnit*.xml'
6977 testRunTitle : ' HQRM'
7078 condition : succeededOrFailed()
7179
7280 - job : Test_Unit
81+ displayName : ' Unit'
7382 pool :
7483 vmImage : ' win1803'
7584 timeoutInMinutes : 0
@@ -78,7 +87,7 @@ stages:
7887 $repositoryOwner,$repositoryName = $env:BUILD_REPOSITORY_NAME -split '/'
7988 echo "##vso[task.setvariable variable=RepositoryOwner;isOutput=true]$repositoryOwner"
8089 echo "##vso[task.setvariable variable=RepositoryName;isOutput=true]$repositoryName"
81- name: DscBuildVariable
90+ name: dscBuildVariable
8291 - task : DownloadBuildArtifacts@0
8392 inputs :
8493 buildType : ' current'
@@ -87,53 +96,61 @@ stages:
8796 downloadPath : ' $(Build.SourcesDirectory)'
8897
8998 - task : PowerShell@2
90- name : Test
99+ name : test
100+ displayName : ' Run Unit Test'
91101 inputs :
92102 filePath : ' ./build.ps1'
93103 arguments : " -Tasks test -PesterScript 'tests/Unit'"
94104 pwsh : false
95105
96106 - task : PublishTestResults@2
107+ displayName : ' Publish Test Results'
97108 inputs :
98109 testResultsFormat : ' NUnit'
99110 testResultsFiles : ' output/testResults/NUnit*.xml'
100111 testRunTitle : ' Unit'
101112 condition : succeededOrFailed()
102113
103114 - task : PublishCodeCoverageResults@1
115+ displayName : ' Publish Code Coverage'
104116 condition : succeededOrFailed()
105117 inputs :
106118 codeCoverageTool : ' JaCoCo'
107119 summaryFileLocation : ' output/testResults/CodeCov*.xml'
108- pathToSources : ' $(Build.SourcesDirectory)/output/$(DscBuildVariable .RepositoryName)'
120+ pathToSources : ' $(Build.SourcesDirectory)/output/$(dscBuildVariable .RepositoryName)'
109121
110122 - job : Test_Integration
123+ displayName : ' Integration'
111124 pool :
112125 vmImage : ' windows-2019'
113126 timeoutInMinutes : 0
114127 steps :
115128 - task : DownloadBuildArtifacts@0
129+ displayName : ' Download Build Artifact'
116130 inputs :
117131 buildType : ' current'
118132 downloadType : ' single'
119133 artifactName : ' output'
120134 downloadPath : ' $(Build.SourcesDirectory)'
121135
122136 - task : PowerShell@2
123- name : ConfigureWinRM
137+ name : configureWinRM
138+ displayName : ' Configure WinRM'
124139 inputs :
125140 targetType : ' inline'
126141 script : ' winrm quickconfig -quiet'
127142 pwsh : false
128143
129144 - task : PowerShell@2
130- name : Test
145+ name : test
146+ displayName : ' Run Integration Test'
131147 inputs :
132148 filePath : ' ./build.ps1'
133149 arguments : " -Tasks test -PesterScript 'tests/Integration' -CodeCoverageThreshold 0"
134150 pwsh : false
135151
136152 - task : PublishTestResults@2
153+ displayName : ' Publish Test Results'
137154 inputs :
138155 testResultsFormat : ' NUnit'
139156 testResultsFiles : ' output/testResults/NUnit*.xml'
@@ -152,19 +169,22 @@ stages:
152169 )
153170 )
154171 jobs :
155- - job : Deploy_Artefact
172+ - job : Deploy_Module
173+ displayName : ' Deploy Module'
156174 pool :
157175 vmImage : ' ubuntu 16.04'
158176 steps :
159177 - task : DownloadBuildArtifacts@0
178+ displayName : ' Download Build Artifact'
160179 inputs :
161180 buildType : ' current'
162181 downloadType : ' single'
163182 artifactName : ' output'
164183 downloadPath : ' $(Build.SourcesDirectory)'
165184
166185 - task : PowerShell@2
167- name : publish_prerelease
186+ name : publishRelease
187+ displayName : ' Publish Release'
168188 inputs :
169189 filePath : ' ./build.ps1'
170190 arguments : ' -tasks publish'
@@ -174,7 +194,8 @@ stages:
174194 GalleryApiToken : $(GalleryApiToken)
175195
176196 - task : PowerShell@2
177- name : send_changelog_PR
197+ name : sendChangelogPR
198+ displayName : ' Send Changelog PR'
178199 inputs :
179200 filePath : ' ./build.ps1'
180201 arguments : ' -tasks Create_ChangeLog_GitHub_PR'
0 commit comments