* Common pipeline template and script to detect API changes * Cahnges as per review comments * Review comment changes * CCahgnes as per review comments * Show warning for list of failed packages to detect API changes * Apply suggestions from code review Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> Co-authored-by: praveenkuttappan <prmarott@microsoft.com> Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com> Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
20 lines
760 B
YAML
20 lines
760 B
YAML
parameters:
|
|
ArtifactPath: $(Build.ArtifactStagingDirectory)
|
|
Artifacts: []
|
|
|
|
steps:
|
|
- task: Powershell@2
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Detect-Api-Changes.ps1
|
|
arguments: >
|
|
-ArtifactList ('${{ convertToJson(parameters.Artifacts) }}' | ConvertFrom-Json | Select-Object Name)
|
|
-ArtifactPath ${{parameters.ArtifactPath}}
|
|
-CommitSha '$(Build.SourceVersion)'
|
|
-BuildId $(Build.BuildId)
|
|
-PullRequestNumber $(System.PullRequest.PullRequestNumber)
|
|
-RepoFullName $(Build.Repository.Name)
|
|
pwsh: true
|
|
workingDirectory: $(Pipeline.Workspace)
|
|
displayName: Detect API changes
|
|
condition: and(succeededOrFailed(), eq(variables['Build.Reason'],'PullRequest'))
|