fyi_hook.yml (813B)
1 # This job is used to get a run into wpt.fyi and staging.wpt.fyi, by notifying 2 # them with the build number and artifact to use. 3 4 parameters: 5 dependsOn: '' 6 artifactName: '' 7 8 jobs: 9 - job: ${{ parameters.dependsOn }}_hook 10 displayName: 'wpt.fyi hook: ${{ parameters.artifactName }}' 11 dependsOn: ${{ parameters.dependsOn }} 12 pool: 13 vmImage: 'ubuntu-24.04' 14 steps: 15 - checkout: none 16 - script: | 17 set -eux -o pipefail 18 curl -f -s -S -d "artifact=${{ parameters.artifactName }}" -X POST https://wpt.fyi/api/checks/azure/$(Build.BuildId) 19 displayName: 'Invoke wpt.fyi hook' 20 - script: | 21 set -eux -o pipefail 22 curl -f -s -S -d "artifact=${{ parameters.artifactName }}" -X POST https://staging.wpt.fyi/api/checks/azure/$(Build.BuildId) 23 displayName: 'Invoke staging.wpt.fyi hook'