From b3989f15f5df8113370d38e3968527d1db926f09 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com> Date: Thu, 2 Jul 2020 13:07:37 -0700 Subject: [PATCH] Enable ChangeLog Verification in Repo (#9819) --- eng/pipelines/templates/jobs/archetype-sdk-client.yml | 7 +++++++ eng/pipelines/templates/stages/archetype-js-release.yml | 5 +++++ eng/pipelines/templates/stages/archetype-sdk-client.yml | 1 + 3 files changed, 13 insertions(+) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 07953ac5536f..e1ad5b44564c 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -164,6 +164,13 @@ jobs: condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true')) displayName: "Audit libraries" + - ${{ each artifact in parameters.Artifacts }}: + - template: /eng/common/pipelines/templates/steps/verify-changelog.yml + parameters: + PackageName: ${{artifact.name}} + ServiceName: ${{parameters.ServiceDirectory}} + ForRelease: false + - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 # ComponentGovernance is currently unable to run on pull requests of public projects. Running on non-PR # builds should be sufficient. diff --git a/eng/pipelines/templates/stages/archetype-js-release.yml b/eng/pipelines/templates/stages/archetype-js-release.yml index 82dd9fa6ad61..72577e33f67e 100644 --- a/eng/pipelines/templates/stages/archetype-js-release.yml +++ b/eng/pipelines/templates/stages/archetype-js-release.yml @@ -29,6 +29,11 @@ stages: deploy: steps: - checkout: self + - template: /eng/common/pipelines/templates/steps/verify-changelog.yml + parameters: + PackageName: ${{artifact.name}} + ServiceName: ${{parameters.ServiceDirectory}} + ForRelease: true - template: /eng/pipelines/templates/steps/stage-artifacts.yml parameters: SourceFolder: ${{parameters.ArtifactName}} diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index c36a75a3c632..3c843a4b995d 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -36,6 +36,7 @@ stages: - template: ../jobs/archetype-sdk-client.yml parameters: ServiceDirectory: ${{parameters.ServiceDirectory}} + Artifacts: ${{parameters.Artifacts}} RunUnitTests: ${{parameters.RunUnitTests}} # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch.