summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/updatebot/kind.yml
blob: 1fd36e6c529b89716594b740cac3bd1076d67055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: taskgraph.loader.transform:loader

transforms:
    - taskgraph.transforms.release_notifications:transforms
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms

jobs:
    verify:
        description: Verify Job for Updatebot
        run-on-projects: []
        treeherder:
            kind: other
            platform: updatebot/all
            symbol: verify
            tier: 1
        worker-type: b-linux
        worker:
            docker-image: {in-tree: debian10-amd64-build}
            max-run-time: 3600
            env:
                PYTHONUNBUFFERED: "1"
        run:
            using: run-task
            cwd: '{checkout}'
            command: $GECKO_PATH/taskcluster/scripts/misc/verify-updatebot.py
        notifications:
            subject: 'updatebot verify job failed'
            message: 'updatebot verify job failed'
            status-types:
                - on-failed
                - on-exception
            emails: ["tom@mozilla.com", "jewilde@mozilla.com"]

    cron:
        description: Cron Job for Updatebot
        run-on-projects: []
        treeherder:
            kind: other
            platform: updatebot/all
            symbol: cron
            tier: 1
        worker-type: b-linux
        worker:
            docker-image: {in-tree: updatebot}
            max-run-time: 3600
            taskcluster-proxy: true
        scopes:
            - secrets:get:project/updatebot/{level}/try-sshkey
            - secrets:get:project/updatebot/{level}/phabricator-token
            - secrets:get:project/updatebot/{level}/bugzilla-api-key
            - secrets:get:project/updatebot/{level}/database-password
            - secrets:get:project/updatebot/{level}/sentry-url
            - secrets:get:project/updatebot/{level}/sql-proxy-config
            - hooks:trigger-hook:project-gecko/in-tree-action-1-generic/*
        run:
            using: run-task
            command: /builds/worker/run.py
        notifications:
            subject: 'updatebot cron failed'
            message: 'updatebot cron failed'
            status-types:
                - on-failed
                - on-exception
            emails: ["tom@mozilla.com", "jewilde@mozilla.com"]