mirrored from https://chromium.googlesource.com/infra/luci/recipes-py
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path__init__.py
34 lines (30 loc) · 976 Bytes
/
__init__.py
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
# Copyright 2018 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
from past.builtins import basestring
from recipe_engine.recipe_api import Property
from recipe_engine.config import ConfigGroup, List, Single
DEPS = [
'buildbucket',
'json',
'platform',
'raw_io',
'step',
'time',
]
PROPERTIES = {
'$recipe_engine/scheduler': Property(
help='Internal property to initialize scheduler module',
param_name='init_state',
kind=ConfigGroup(
hostname=Single(basestring, required=False),
job=Single(basestring, required=False),
invocation=Single(basestring, required=False),
# A list of scheduler triggers that triggered the current build.
# A trigger is JSON-formatted dict of a scheduler.Trigger protobuf
# message.
triggers=List(dict),
),
default={},
),
}