Skip to content

Commit

Permalink
[Azure Pipelines] Add wpt.fyi hooks for each individual job/run (#15498)
Browse files Browse the repository at this point in the history
* [Azure Pipelines] Add wpt.fyi hooks for each individual job/run

* Make job name unique

* No dashes in job names
  • Loading branch information
foolip authored and lukebjerring committed Feb 21, 2019
1 parent 37e794f commit 8ba5533
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
- template: tools/ci/azure/affected_tests.yml
parameters:
artifactName: 'safari-preview-affected-tests'
- template: tools/ci/azure/fyi_hook.yml
parameters:
dependsOn: affected_safari_preview
artifactName: safari-preview-affected-tests

- job: affected_without_changes_safari_preview
displayName: 'affected tests without changes (Safari Technology Preview)'
Expand All @@ -43,6 +47,10 @@ jobs:
checkoutCommit: 'HEAD^1'
affectedRange: 'HEAD@{1}'
artifactName: 'safari-preview-affected-tests-without-changes'
- template: tools/ci/azure/fyi_hook.yml
parameters:
dependsOn: affected_without_changes_safari_preview
artifactName: safari-preview-affected-tests-without-changes

# The decision jobs runs `./wpt test-jobs` to determine which jobs to run,
# and all following jobs wait for it to finish and depend on its output.
Expand Down Expand Up @@ -184,6 +192,10 @@ jobs:
inputs:
artifactName: 'edge-results'
- template: tools/ci/azure/cleanup_win10.yml
- template: tools/ci/azure/fyi_hook.yml
parameters:
dependsOn: results_edge
artifactName: edge-results

# All `./wpt run` tests are run from epochs/* branches on a schedule. See
# documentation at the top of this file for required setup.
Expand Down Expand Up @@ -211,3 +223,7 @@ jobs:
displayName: 'Publish results'
inputs:
artifactName: 'safari-preview-results'
- template: tools/ci/azure/fyi_hook.yml
parameters:
dependsOn: results_safari_preview
artifactName: safari-preview-results
18 changes: 18 additions & 0 deletions tools/ci/azure/fyi_hook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This job is used to get a run into wpt.fyi and staging.wpt.fyi, by notifying
# them with the build number and artifact to use.

parameters:
dependsOn: ''
artifactName: ''

jobs:
- job: ${{ parameters.dependsOn }}_hook
displayName: 'wpt.fyi hook: ${{ parameters.artifactName }}'
dependsOn: ${{ parameters.dependsOn }}
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: curl -s -S https://wpt.fyi/api/checks/azure/$(Build.BuildId)?artifact=${{ parameters.artifactName }}
displayName: 'Invoke wpt.fyi hook'
- script: curl -s -S https://staging.wpt.fyi/api/checks/azure/$(Build.BuildId)?artifact=${{ parameters.artifactName }}
displayName: 'Invoke staging.wpt.fyi hook'

0 comments on commit 8ba5533

Please sign in to comment.