screwdriver-data-schema 25.1.0 → 25.1.2
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/base.js +8 -5
- package/package.json +1 -1
package/config/base.js
CHANGED
|
@@ -37,14 +37,16 @@ const SCHEMA_CHILD_PIPELINES = Joi.object()
|
|
|
37
37
|
startAll: Joi.boolean()
|
|
38
38
|
})
|
|
39
39
|
.unknown(false);
|
|
40
|
-
const
|
|
40
|
+
const SCHEMA_SETUP_JOB = Job.job.keys({ requires: Joi.forbidden() });
|
|
41
|
+
const SCHEMA_TEARDOWN_JOB = Job.job.keys({ requires: Joi.forbidden(), sourcePaths: Joi.forbidden() });
|
|
41
42
|
const SCHEMA_STAGE = Joi.object()
|
|
42
43
|
.keys({
|
|
43
44
|
description: Joi.string(),
|
|
44
45
|
jobs: Joi.array().items(Job.jobName).min(0),
|
|
45
|
-
setup:
|
|
46
|
-
teardown:
|
|
47
|
-
requires: Job.requires
|
|
46
|
+
setup: SCHEMA_SETUP_JOB,
|
|
47
|
+
teardown: SCHEMA_TEARDOWN_JOB,
|
|
48
|
+
requires: Job.requires,
|
|
49
|
+
sourcePaths: Job.sourcePaths
|
|
48
50
|
})
|
|
49
51
|
.unknown(false);
|
|
50
52
|
|
|
@@ -122,7 +124,8 @@ module.exports = {
|
|
|
122
124
|
childPipelines: SCHEMA_CHILD_PIPELINES,
|
|
123
125
|
configBeforeMergingTemplate: SCHEMA_CONFIG_PRE_TEMPLATE_MERGE,
|
|
124
126
|
configAfterMergingTemplate: SCHEMA_CONFIG_POST_TEMPLATE_MERGE,
|
|
125
|
-
|
|
127
|
+
stageSetupJob: SCHEMA_SETUP_JOB,
|
|
128
|
+
stageTeardownJob: SCHEMA_TEARDOWN_JOB,
|
|
126
129
|
stage: SCHEMA_STAGE,
|
|
127
130
|
stages: SCHEMA_STAGES,
|
|
128
131
|
subscribe: SCHEMA_SUBSCRIBE
|