screwdriver-data-schema 21.10.0 → 21.10.1
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/provider.js +5 -2
- package/package.json +1 -1
- package/plugins/executor.js +5 -2
package/config/provider.js
CHANGED
|
@@ -8,7 +8,8 @@ const SCHEMA_VPC_OBJECT = Joi.object({
|
|
|
8
8
|
.regex(Regex.VPC_ID)
|
|
9
9
|
.max(128)
|
|
10
10
|
.description('VPC ID')
|
|
11
|
-
.example('vpc-1a2b3c4d')
|
|
11
|
+
.example('vpc-1a2b3c4d')
|
|
12
|
+
.required(),
|
|
12
13
|
securityGroupIds: Joi.array()
|
|
13
14
|
.items(
|
|
14
15
|
Joi.string()
|
|
@@ -18,7 +19,8 @@ const SCHEMA_VPC_OBJECT = Joi.object({
|
|
|
18
19
|
.example('sg-51530134')
|
|
19
20
|
)
|
|
20
21
|
.min(1)
|
|
21
|
-
.label('List of security group IDs')
|
|
22
|
+
.label('List of security group IDs')
|
|
23
|
+
.required(),
|
|
22
24
|
subnetIds: Joi.array()
|
|
23
25
|
.items(
|
|
24
26
|
Joi.string()
|
|
@@ -29,6 +31,7 @@ const SCHEMA_VPC_OBJECT = Joi.object({
|
|
|
29
31
|
)
|
|
30
32
|
.min(1)
|
|
31
33
|
.label('List of subnet IDs')
|
|
34
|
+
.required()
|
|
32
35
|
});
|
|
33
36
|
|
|
34
37
|
const SCHEMA_PROVIDER = Joi.object().keys({
|
package/package.json
CHANGED
package/plugins/executor.js
CHANGED
|
@@ -26,6 +26,7 @@ const buildSchemaObj = {
|
|
|
26
26
|
jobName,
|
|
27
27
|
jobState,
|
|
28
28
|
jobArchived,
|
|
29
|
+
provider: Job.provider,
|
|
29
30
|
annotations: Annotations.annotations,
|
|
30
31
|
blockedBy: Joi.array().items(jobId),
|
|
31
32
|
freezeWindows: Job.freezeWindows,
|
|
@@ -61,7 +62,8 @@ const SCHEMA_STOP = Joi.object()
|
|
|
61
62
|
buildClusterName: models.buildCluster.base.extract('name'),
|
|
62
63
|
jobId,
|
|
63
64
|
token: Joi.string().label('Build JWT'),
|
|
64
|
-
pipelineId
|
|
65
|
+
pipelineId,
|
|
66
|
+
provider: Job.provider
|
|
65
67
|
})
|
|
66
68
|
.required();
|
|
67
69
|
const SCHEMA_STATUS = Joi.object()
|
|
@@ -69,7 +71,8 @@ const SCHEMA_STATUS = Joi.object()
|
|
|
69
71
|
buildId,
|
|
70
72
|
token: Joi.string().label('Build JWT'),
|
|
71
73
|
pipelineId,
|
|
72
|
-
jobId
|
|
74
|
+
jobId,
|
|
75
|
+
provider: Job.provider
|
|
73
76
|
})
|
|
74
77
|
.required();
|
|
75
78
|
const SCHEMA_VERIFY = Joi.object()
|