screwdriver-data-schema 21.15.0 → 21.18.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/annotations.js +2 -1
- package/config/provider.js +35 -2
- package/core/scm.js +16 -1
- package/package.json +5 -5
- package/plugins/scm.js +1 -1
package/config/annotations.js
CHANGED
|
@@ -29,7 +29,8 @@ const RESERVED_PIPELINE_ANNOTATIONS = [
|
|
|
29
29
|
'screwdriver.cd/buildCluster',
|
|
30
30
|
'screwdriver.cd/restrictPR',
|
|
31
31
|
'screwdriver.cd/chainPR',
|
|
32
|
-
'screwdriver.cd/pipelineDescription'
|
|
32
|
+
'screwdriver.cd/pipelineDescription',
|
|
33
|
+
'screwdriver.cd/useDeployKey'
|
|
33
34
|
];
|
|
34
35
|
|
|
35
36
|
/**
|
package/config/provider.js
CHANGED
|
@@ -69,8 +69,41 @@ const SCHEMA_PROVIDER = Joi.object().keys({
|
|
|
69
69
|
.example('eks'),
|
|
70
70
|
clusterName: Joi.string()
|
|
71
71
|
.max(128)
|
|
72
|
-
.description('Cluster name')
|
|
73
|
-
.example('sd-build-eks')
|
|
72
|
+
.description('Cluster name required if executor is eks')
|
|
73
|
+
.example('sd-build-eks'),
|
|
74
|
+
executorLogs: Joi.boolean()
|
|
75
|
+
.optional()
|
|
76
|
+
.default(false)
|
|
77
|
+
.description('Enable debug logs for executor codebuild'),
|
|
78
|
+
launcherImage: Joi.string()
|
|
79
|
+
.description('Screwdriver launcher image in user Registry')
|
|
80
|
+
.example('123456789012.dkr.ecr.us-east-2.amazonaws.com/screwdriver-hub:launcherv6.4'),
|
|
81
|
+
launcherVersion: Joi.string()
|
|
82
|
+
.description('Screwdriver launcher version')
|
|
83
|
+
.example('v6.4'),
|
|
84
|
+
privilegedMode: Joi.boolean()
|
|
85
|
+
.optional()
|
|
86
|
+
.default(false)
|
|
87
|
+
.description('Enable privileged mode for container'),
|
|
88
|
+
computeType: Joi.string()
|
|
89
|
+
.valid(
|
|
90
|
+
'BUILD_GENERAL1_SMALL',
|
|
91
|
+
'BUILD_GENERAL1_LARGE',
|
|
92
|
+
'BUILD_GENERAL1_MEDIUM',
|
|
93
|
+
'BUILD_GENERAL1_LARGE',
|
|
94
|
+
'BUILD_GENERAL1_2XLARGE',
|
|
95
|
+
'BUILD_GENERAL1_LARGE',
|
|
96
|
+
'BUILD_GENERAL1_MEDIUM',
|
|
97
|
+
'BUILD_GENERAL1_LARGE'
|
|
98
|
+
)
|
|
99
|
+
.optional()
|
|
100
|
+
.default('BUILD_GENERAL1_SMALL')
|
|
101
|
+
.description('CodeBuild compute type'),
|
|
102
|
+
environment: Joi.string()
|
|
103
|
+
.optional()
|
|
104
|
+
.valid('ARM_CONTAINER', 'LINUX_CONTAINER', 'LINUX_GPU_CONTAINER')
|
|
105
|
+
.default('LINUX_CONTAINER')
|
|
106
|
+
.description('CodeBuild environment type')
|
|
74
107
|
});
|
|
75
108
|
|
|
76
109
|
module.exports = {
|
package/core/scm.js
CHANGED
|
@@ -251,7 +251,22 @@ const SCHEMA_HOOK = Joi.object()
|
|
|
251
251
|
releaseAuthor: Joi.string()
|
|
252
252
|
.allow('')
|
|
253
253
|
.optional()
|
|
254
|
-
.label('Author of the event')
|
|
254
|
+
.label('Author of the event'),
|
|
255
|
+
|
|
256
|
+
addedFiles: Joi.array()
|
|
257
|
+
.items(Joi.string().allow(''))
|
|
258
|
+
.optional()
|
|
259
|
+
.label('Added files of head commit'),
|
|
260
|
+
|
|
261
|
+
modifiedFiles: Joi.array()
|
|
262
|
+
.items(Joi.string().allow(''))
|
|
263
|
+
.optional()
|
|
264
|
+
.label('Modified files of head commit'),
|
|
265
|
+
|
|
266
|
+
removedFiles: Joi.array()
|
|
267
|
+
.items(Joi.string().allow(''))
|
|
268
|
+
.optional()
|
|
269
|
+
.label('Removed files of head commit')
|
|
255
270
|
})
|
|
256
271
|
.label('SCM Hook');
|
|
257
272
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-data-schema",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.18.0",
|
|
4
4
|
"description": "Internal Data Schema of Screwdriver",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"mysql2": "^1.7.0",
|
|
50
50
|
"nyc": "^15.0.0",
|
|
51
51
|
"pg": "^7.18.2",
|
|
52
|
-
"sequelize": "^5.22.
|
|
52
|
+
"sequelize": "^5.22.5",
|
|
53
53
|
"sequelize-cli": "^5.5.1",
|
|
54
|
-
"sqlite3": "^
|
|
54
|
+
"sqlite3": "^5.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"cron-parser": "^2.
|
|
58
|
-
"joi": "^17.
|
|
57
|
+
"cron-parser": "^4.2.1",
|
|
58
|
+
"joi": "^17.5.0"
|
|
59
59
|
}
|
|
60
60
|
}
|