Page MenuHomeDevCentral

Document notifications center configuration schemas
Open, NormalPublic

Description

We've currently four schemas to document for the Notifications center:

  • credentials.json
  • GitHub mappings
  • Phabricator mappings
  • Jenkins mappings

A sample starting point for Jenkins mappings could be:

1{
2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "type": "object",
4 "properties": {
5 "defaultGroup": {
6 "type": "string",
7 "default": "ci"
8 },
9 "groupsMapping": {
10 "type": "array",
11 "items": {
12 "type": "object",
13 "properties": {
14 "group": {
15 "type": "string"
16 },
17 "jobs": {
18 "type": "array",
19 "items": {
20 "type": "string"
21 }
22 }
23 },
24 "required": [
25 "group",
26 "jobs"
27 ]
28 }
29 },
30 "notifyOnlyOnFailure": {
31 "type": "array",
32 "items": {
33 "type": "string"
34 }
35 }
36 },
37 "required": [
38 "defaultGroup",
39 "groupsMapping",
40 "notifyOnlyOnFailure"
41 ]
42}

Event Timeline

dereckson moved this task from Backlog to Next on the User-Dereckson board.
dereckson added a project: Technical debt.

Per D629, groupsMapping / projectsMapping / repositoryMapping becomes map, to get a common basis.

[ This task isn't in my immediate radar. ]

dereckson added a subscriber: DorianWinty.

@DorianWinty That one could be a candidate to publish at rSCHEMA too.