diff --git a/CHANGELOG.md b/CHANGELOG.md index da34c6b..4346199 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed `azure-pipeline.yml` to match current pattern ([Issue #59](https://github.com/dsccommunity/WSManDsc/issues/59)). - Set `testRunTitle` for PublishTestResults steps so that a helpful name is displayed in Azure DevOps for each test run. +- Set a display name on all the jobs and tasks in the CI + pipeline - fixes [issue #63](https://github.com/PowerShell/WSManDsc/issues/63) ### Deprecated diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e683820..4403977 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,26 +15,30 @@ pr: stages: - stage: Build jobs: - - job: BuildModuleJob + - job: Package_Module + displayName: 'Package Module' pool: vmImage: 'ubuntu 16.04' steps: - task: GitVersion@5 name: gitversion + displayName: 'Evaluate Next Version' inputs: runtime: 'core' configFilePath: 'GitVersion.yml' - task: PowerShell@2 - name: Build + name: package + displayName: 'Build & Package Module' inputs: filePath: './build.ps1' arguments: '-Tasks pack -ResolveDependency' pwsh: true env: - ModuleVersion: $(GitVersion.Informationalversion) + ModuleVersion: $(gitVersion.Informationalversion) - task: PublishBuildArtifacts@1 + displayName: 'Publish Build Artifact' inputs: PathtoPublish: 'output/' ArtifactName: 'output' @@ -44,11 +48,13 @@ stages: dependsOn: Build jobs: - job: Test_HQRM + displayName: 'HQRM' pool: vmImage: 'win1803' timeoutInMinutes: 0 steps: - task: DownloadBuildArtifacts@0 + displayName: 'Download Build Artifact' inputs: buildType: 'current' downloadType: 'single' @@ -57,12 +63,14 @@ stages: - task: PowerShell@2 name: Test + displayName: 'Run HQRM Test' inputs: filePath: './build.ps1' arguments: '-Tasks hqrmtest' pwsh: false - task: PublishTestResults@2 + displayName: 'Publish Test Results' inputs: testResultsFormat: 'NUnit' testResultsFiles: 'output/testResults/NUnit*.xml' @@ -70,6 +78,7 @@ stages: condition: succeededOrFailed() - job: Test_Unit + displayName: 'Unit' pool: vmImage: 'win1803' timeoutInMinutes: 0 @@ -78,7 +87,7 @@ stages: $repositoryOwner,$repositoryName = $env:BUILD_REPOSITORY_NAME -split '/' echo "##vso[task.setvariable variable=RepositoryOwner;isOutput=true]$repositoryOwner" echo "##vso[task.setvariable variable=RepositoryName;isOutput=true]$repositoryName" - name: DscBuildVariable + name: dscBuildVariable - task: DownloadBuildArtifacts@0 inputs: buildType: 'current' @@ -87,13 +96,15 @@ stages: downloadPath: '$(Build.SourcesDirectory)' - task: PowerShell@2 - name: Test + name: test + displayName: 'Run Unit Test' inputs: filePath: './build.ps1' arguments: "-Tasks test -PesterScript 'tests/Unit'" pwsh: false - task: PublishTestResults@2 + displayName: 'Publish Test Results' inputs: testResultsFormat: 'NUnit' testResultsFiles: 'output/testResults/NUnit*.xml' @@ -101,18 +112,21 @@ stages: condition: succeededOrFailed() - task: PublishCodeCoverageResults@1 + displayName: 'Publish Code Coverage' condition: succeededOrFailed() inputs: codeCoverageTool: 'JaCoCo' summaryFileLocation: 'output/testResults/CodeCov*.xml' - pathToSources: '$(Build.SourcesDirectory)/output/$(DscBuildVariable.RepositoryName)' + pathToSources: '$(Build.SourcesDirectory)/output/$(dscBuildVariable.RepositoryName)' - job: Test_Integration + displayName: 'Integration' pool: vmImage: 'windows-2019' timeoutInMinutes: 0 steps: - task: DownloadBuildArtifacts@0 + displayName: 'Download Build Artifact' inputs: buildType: 'current' downloadType: 'single' @@ -120,20 +134,23 @@ stages: downloadPath: '$(Build.SourcesDirectory)' - task: PowerShell@2 - name: ConfigureWinRM + name: configureWinRM + displayName: 'Configure WinRM' inputs: targetType: 'inline' script: 'winrm quickconfig -quiet' pwsh: false - task: PowerShell@2 - name: Test + name: test + displayName: 'Run Integration Test' inputs: filePath: './build.ps1' arguments: "-Tasks test -PesterScript 'tests/Integration' -CodeCoverageThreshold 0" pwsh: false - task: PublishTestResults@2 + displayName: 'Publish Test Results' inputs: testResultsFormat: 'NUnit' testResultsFiles: 'output/testResults/NUnit*.xml' @@ -152,11 +169,13 @@ stages: ) ) jobs: - - job: Deploy_Artefact + - job: Deploy_Module + displayName: 'Deploy Module' pool: vmImage: 'ubuntu 16.04' steps: - task: DownloadBuildArtifacts@0 + displayName: 'Download Build Artifact' inputs: buildType: 'current' downloadType: 'single' @@ -164,7 +183,8 @@ stages: downloadPath: '$(Build.SourcesDirectory)' - task: PowerShell@2 - name: publish_prerelease + name: publishRelease + displayName: 'Publish Release' inputs: filePath: './build.ps1' arguments: '-tasks publish' @@ -174,7 +194,8 @@ stages: GalleryApiToken: $(GalleryApiToken) - task: PowerShell@2 - name: send_changelog_PR + name: sendChangelogPR + displayName: 'Send Changelog PR' inputs: filePath: './build.ps1' arguments: '-tasks Create_ChangeLog_GitHub_PR'