screwdriver-data-schema 21.10.1 → 21.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/settings.js +2 -1
- package/package.json +8 -8
- package/plugins/executor.js +10 -1
package/config/settings.js
CHANGED
|
@@ -28,7 +28,8 @@ const SCHEMA_PIPELINE_SETTINGS = Joi.object()
|
|
|
28
28
|
.keys({
|
|
29
29
|
metricsDowntimeJobs: SCHEMA_METRICS_DOWNTIME_JOBS,
|
|
30
30
|
metricsDowntimeStatuses: SCHEMA_METRICS_DOWNTIME_STATUSES,
|
|
31
|
-
public: Joi.boolean()
|
|
31
|
+
public: Joi.boolean(),
|
|
32
|
+
groupedEvents: Joi.boolean().default(false)
|
|
32
33
|
})
|
|
33
34
|
.default({});
|
|
34
35
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-data-schema",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.13.0",
|
|
4
4
|
"description": "Internal Data Schema of Screwdriver",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"pretest": "eslint .",
|
|
8
8
|
"test": "nyc --report-dir ./artifacts/coverage --reporter=lcov mocha --reporter mocha-multi-reporters --reporter-options configFile=./mocha.config.json --recursive --timeout 4000 --retries 1 --exit --allow-uncaught true --color true",
|
|
9
|
-
"semantic-release": "semantic-release
|
|
9
|
+
"semantic-release": "./node_modules/.bin/semantic-release --debug"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git
|
|
13
|
+
"url": "git+https://github.com/screwdriver-cd/data-schema.git"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/screwdriver-cd/data-schema",
|
|
16
16
|
"bugs": "https://github.com/screwdriver-cd/data-schema/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"Tiffany Kyi <tiffanykyi@gmail.com>"
|
|
34
34
|
],
|
|
35
35
|
"release": {
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
"branches": [
|
|
37
|
+
"master"
|
|
38
|
+
],
|
|
39
|
+
"debug": false
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"chai": "^4.2.0",
|
|
@@ -57,4 +57,4 @@
|
|
|
57
57
|
"cron-parser": "^2.18.0",
|
|
58
58
|
"joi": "^17.4.2"
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|
package/plugins/executor.js
CHANGED
|
@@ -52,6 +52,7 @@ const buildSchemaObj = {
|
|
|
52
52
|
};
|
|
53
53
|
const SCHEMA_START = Joi.object()
|
|
54
54
|
.keys(buildSchemaObj)
|
|
55
|
+
.unknown(true) // allow other fields
|
|
55
56
|
.required();
|
|
56
57
|
const SCHEMA_STOP = Joi.object()
|
|
57
58
|
.keys({
|
|
@@ -63,8 +64,14 @@ const SCHEMA_STOP = Joi.object()
|
|
|
63
64
|
jobId,
|
|
64
65
|
token: Joi.string().label('Build JWT'),
|
|
65
66
|
pipelineId,
|
|
66
|
-
provider: Job.provider
|
|
67
|
+
provider: Job.provider,
|
|
68
|
+
apiUri: Joi.string()
|
|
69
|
+
.uri()
|
|
70
|
+
.required()
|
|
71
|
+
.label('API URI'),
|
|
72
|
+
jobName
|
|
67
73
|
})
|
|
74
|
+
.unknown(true) // allow other fields
|
|
68
75
|
.required();
|
|
69
76
|
const SCHEMA_STATUS = Joi.object()
|
|
70
77
|
.keys({
|
|
@@ -74,9 +81,11 @@ const SCHEMA_STATUS = Joi.object()
|
|
|
74
81
|
jobId,
|
|
75
82
|
provider: Job.provider
|
|
76
83
|
})
|
|
84
|
+
.unknown(true) // allow other fields
|
|
77
85
|
.required();
|
|
78
86
|
const SCHEMA_VERIFY = Joi.object()
|
|
79
87
|
.keys(buildSchemaObj)
|
|
88
|
+
.unknown(true) // allow other fields
|
|
80
89
|
.required();
|
|
81
90
|
|
|
82
91
|
module.exports = {
|