-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
56 lines (41 loc) · 1.49 KB
/
README
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
Buildbot-Mongodb-Status
========================
Status reporter for feeding buildbot statuses into mongodb database.
This is used as a library by CthulhuBot [1] and is tested from it
(definitely not ideal, but workable until I learn how to mock with
BuildBot properly).
[1] http://github.com/ella/cthulhubot
Simple Example:
from bbmongostatus.status import MongoDb
c['status'].append(MongoDb(database="buildmaster"))
Also, You can access more complicated deployments:
MongoDb(database="build_status", host="my-storage",
port=12345, username="statuser", password="topsecret",
master_id="identifier")
master_id is used to distinguish between multiple buildmasters
storing builds in same database.
Following example collections and corresponding JSONs are stored:
builders : {
'name' : "string",
'master_id' : <int>,
"status" : "string"
}
builds : {
'builder' : "string",
'slaves' : ["builder", "slave", "names"],
'number' : int,
'time_start' : timestamp,
'time_end' : timestamp,
'steps' : [<References>, <to>, <steps>, <below>],
'result' : "string for now",
'changeset' : "changeset from sourcestamp retrieved"
}
steps : {
'time_start' : timestamp,
'time_end' : timestamp or None,
'stdout' : 'string',
'stderr' : 'string',
'headers' : 'string',
'successful' : bool,
'name' : "string"
}