Skip to content

Commit

Permalink
Reorder aggregate-report Steps (#18567)
Browse files Browse the repository at this point in the history
* Reorder aggregate-report Steps

* Remove invalid condition from template step
  • Loading branch information
alzimmermsft authored Jan 13, 2021
1 parent 5c12e44 commit b8443a2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
vmImage: 'ubuntu-18.04'
steps:

- template: ../common/pipelines/templates/steps/verify-links.yml
parameters:
Directory: ""
CheckLinkGuidance: $true

# We `install` the code quality reports tooling into our local m2 cache separately from building the Maven project
# reports. This means it is available as part of that, but also so that this is not documented in the project report.
- template: templates/steps/install-reporting-tools.yml
Expand All @@ -44,7 +39,8 @@ jobs:
- 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.
condition: and(succeededOrFailed(), ne(variables['Build.Reason'], 'PullRequest'))
# Only run if building all libraries succeeded.
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
displayName: 'Component Detection'

- task: Maven@3
Expand Down Expand Up @@ -98,6 +94,13 @@ jobs:
Copy-Item data.js $(Build.ArtifactStagingDirectory)/staging
displayName: 'Copy reports to artifact staging'
# Run link verification at the end as it will run no matter the pipeline passing or failing.
# If this task fails with an error it shouldn't prevent aggregate reports from being generated.
- template: ../common/pipelines/templates/steps/verify-links.yml
parameters:
Directory: ""
CheckLinkGuidance: $true

- publish: $(Build.ArtifactStagingDirectory)
condition: succeededOrFailed()
displayName: 'Publish Report Artifacts'
Expand Down

0 comments on commit b8443a2

Please sign in to comment.