зеркало из https://github.com/mozilla/bugbug.git
Add a new tasks for updating bugbug hook (#289)
The hook will be responsible for starting the data pipeline, but right now is doing mostly nothing. Use taskboot new command `build-hook` to update the hook based on the versioned definition file.
This commit is contained in:
Родитель
17ccdf7545
Коммит
ded92357ee
|
@ -27,3 +27,4 @@ share/python-wheels/
|
|||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
cache/
|
||||
|
|
|
@ -237,3 +237,36 @@ tasks:
|
|||
description: bugbug docker push
|
||||
owner: ${user}@users.noreply.github.com
|
||||
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
||||
|
||||
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
|
||||
then:
|
||||
taskId: {$eval: as_slugid("update_hook")}
|
||||
dependencies:
|
||||
- {$eval: as_slugid("docker_push")}
|
||||
scopes:
|
||||
- hooks:modify-hook:project-relman/bugbug
|
||||
- assume:hook-id:project-relman/bugbug
|
||||
created: {$fromNow: ''}
|
||||
deadline: {$fromNow: '1 hour'}
|
||||
provisionerId: aws-provisioner-v1
|
||||
workerType: github-worker
|
||||
payload:
|
||||
features:
|
||||
taskclusterProxy:
|
||||
true
|
||||
maxRunTime: 3600
|
||||
image: mozilla/taskboot:latest
|
||||
env:
|
||||
GIT_REPOSITORY: ${repository}
|
||||
GIT_REVISION: ${head_rev}
|
||||
command:
|
||||
- taskboot
|
||||
- build-hook
|
||||
- infra/taskcluster-hook-pipeline-start.json
|
||||
- project-relman
|
||||
- bugbug
|
||||
metadata:
|
||||
name: bugbug update hooks
|
||||
description: bugbug update hooks
|
||||
owner: ${user}@users.noreply.github.com
|
||||
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"schedule": [
|
||||
"0 0 * * * *"
|
||||
],
|
||||
"metadata": {
|
||||
"description": "",
|
||||
"name": "BugBug data pipeline",
|
||||
"owner": "mcastelluccio@mozilla.com"
|
||||
},
|
||||
"task": {
|
||||
"created": {
|
||||
"$fromNow": "0 seconds"
|
||||
},
|
||||
"deadline": {
|
||||
"$fromNow": "2 hours"
|
||||
},
|
||||
"expires": {
|
||||
"$fromNow": "1 month"
|
||||
},
|
||||
"extra": {},
|
||||
"metadata": {
|
||||
"description": "",
|
||||
"name": "BugBug data pipeline",
|
||||
"owner": "mcastelluccio@mozilla.com",
|
||||
"source": "https://github.com/mozilla/bugbug"
|
||||
},
|
||||
"payload": {
|
||||
"artifacts": {},
|
||||
"cache": {},
|
||||
"capabilities": {},
|
||||
"command": [
|
||||
"/hello"
|
||||
],
|
||||
"env": {},
|
||||
"features": {
|
||||
"taskclusterProxy": true
|
||||
},
|
||||
"image": "hello-world",
|
||||
"maxRunTime": 7200
|
||||
},
|
||||
"priority": "normal",
|
||||
"provisionerId": "aws-provisioner-v1",
|
||||
"retries": 5,
|
||||
"routes": [
|
||||
"notify.email.release-mgmt-analysis@mozilla.com.on-failed",
|
||||
"notify.irc-channel.#bugbug.on-failed"
|
||||
],
|
||||
"schedulerId": "-",
|
||||
"scopes": [
|
||||
"assume:hook-id:project-relman/bugbug"
|
||||
],
|
||||
"tags": {},
|
||||
"workerType": "taskcluster-generic"
|
||||
},
|
||||
"triggerSchema": {
|
||||
"additionalProperties": true,
|
||||
"type": "object"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче