summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/ci/azure/fyi_hook.yml
blob: df92ce10664d4f697cd0456cfc586f1b5cec33c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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-20.04'
  steps:
  - checkout: none
  - script: |
      set -eux -o pipefail
      curl -f -s -S -d "artifact=${{ parameters.artifactName }}" -X POST https://wpt.fyi/api/checks/azure/$(Build.BuildId)
    displayName: 'Invoke wpt.fyi hook'
  - script: |
      set -eux -o pipefail
      curl -f -s -S -d "artifact=${{ parameters.artifactName }}" -X POST https://staging.wpt.fyi/api/checks/azure/$(Build.BuildId)
    displayName: 'Invoke staging.wpt.fyi hook'