Skip to content

Commit

Permalink
move apireview step into the analyze stage (Azure#17924)
Browse files Browse the repository at this point in the history
* move apireview step into the analyze stage, shift artifact publish to end of the job
  • Loading branch information
scbedd authored Apr 9, 2021
1 parent 4283862 commit c8658b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
18 changes: 10 additions & 8 deletions eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ steps:
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
displayName: 'Component Detection'

- task: PublishPipelineArtifact@1
condition: succeededOrFailed()
displayName: 'Publish Report Artifacts'
inputs:
artifactName: reports
pathtoPublish: $(Build.ArtifactStagingDirectory)/reports

- task: PythonScript@0
displayName: 'Verify sdist'
condition: and(succeededOrFailed(), ne(variables['Skip.VerifySdist'],'true'))
Expand Down Expand Up @@ -93,7 +86,7 @@ steps:
TestMarkArgument: ${{ parameters.TestMarkArgument }}

- task: DownloadPipelineArtifact@2
condition: and(succeededOrFailed(), ne(variables['Skip.ApiStubGen'],'true'))
condition: succeededOrFailed()
inputs:
artifactName: 'packages'
targetPath: $(Build.ArtifactStagingDirectory)
Expand All @@ -119,4 +112,13 @@ steps:
TestMarkArgument: ${{ parameters.TestMarkArgument }}
AdditionalTestArgs: ${{parameters.AdditionalTestArgs}}

- template: /eng/common/pipelines/templates/steps/create-apireview.yml
parameters:
Artifacts: ${{ parameters.Artifacts }}

- template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.ArtifactStagingDirectory)/reports'
ArtifactName: 'reports'
6 changes: 1 addition & 5 deletions eng/pipelines/templates/steps/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,4 @@ steps:
parameters:
ArtifactPath: '$(Build.SourcesDirectory)/_docs'
CustomCondition: ${{ parameters.BuildDocs }}
ArtifactName: 'documentation'

- template: /eng/common/pipelines/templates/steps/create-apireview.yml
parameters:
Artifacts: ${{ parameters.Artifacts }}
ArtifactName: 'documentation'

0 comments on commit c8658b8

Please sign in to comment.