blob: f02f3cd8224e0b3eb4f478318f0437f5a475f4e5 [file] [log] [blame]
# 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-18.04'
steps:
- checkout: none
- script: curl -f -s -S -d "artifact=${{ parameters.artifactName }}" -X POST https://wpt.fyi/api/checks/azure/$(Build.BuildId)
displayName: 'Invoke wpt.fyi hook'
- script: 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'