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 created this task.Aug 20 2016, 18:13
dereckson moved this task from Backlog to Next on the User-Dereckson board.
dereckson added a project: Technical debt.
dereckson added a comment.EditedAug 23 2016, 14:41

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

dereckson moved this task from Next to Backlog on the User-Dereckson board.Oct 19 2016, 14:21
dereckson moved this task from Backlog to Debt on the Notifications center board.Dec 31 2016, 05:33
dereckson moved this task from Backlog to Doc on the Technical debt board.Dec 5 2019, 13:12