github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/resources/schemas/metadata.json (about) 1 { 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "title": "Step Metadata", 4 "type": "object", 5 "required": ["metadata", "spec"], 6 "additionalProperties": false, 7 "properties": { 8 "metadata": { 9 "$ref": "#definitions/com.sap.piper.metadata" 10 }, 11 "spec": { 12 "type": "object", 13 "additionalProperties": false, 14 "properties": { 15 "inputs": { 16 "type": "object", 17 "additionalProperties": false, 18 "properties": { 19 "secrets": { 20 "$ref": "#definitions/com.sap.piper.metadata.spec.inputs.secretList" 21 }, 22 "resources": { 23 "$ref": "#definitions/com.sap.piper.metadata.spec.inputs.resourceList" 24 }, 25 "params": { 26 "$ref": "#definitions/com.sap.piper.metadata.spec.inputs.paramList" 27 } 28 } 29 }, 30 "containers": { 31 "$ref": "#definitions/com.sap.piper.metadata.spec.containerList" 32 }, 33 "sidecars": { 34 "$ref": "#definitions/com.sap.piper.metadata.spec.containerList" 35 } 36 } 37 } 38 }, 39 "definitions": { 40 "com.sap.piper.metadata": { 41 "type": "object", 42 "additionalProperties": false, 43 "properties": { 44 "name": { "type": "string" }, 45 "description": { "type": "string" }, 46 "longDescription": { "type": "string" } 47 }, 48 "required": ["name", "description", "longDescription"] 49 }, 50 "com.sap.piper.metadata.spec.inputs.secretList": { 51 "type": "array", 52 "items": { 53 "type": "object", 54 "additionalProperties": false, 55 "properties": { 56 "name": { "type": "string" }, 57 "description": { "type": "string" }, 58 "type": { 59 "type": "string", 60 "enum": ["jenkins"] 61 } 62 } 63 } 64 }, 65 "com.sap.piper.metadata.spec.inputs.resourceList": { 66 "type": "array", 67 "items": { 68 "type": "object", 69 "additionalProperties": false, 70 "properties": { 71 "name": { "type": "string" }, 72 "description": { "type": "string" }, 73 "type": { 74 "type": "string", 75 "enum": ["stash"] 76 } 77 } 78 } 79 }, 80 "com.sap.piper.metadata.spec.inputs.paramList": { 81 "type": "array", 82 "items": { 83 "$ref": "#definitions/com.sap.piper.metadata.spec.inputs.params" 84 } 85 }, 86 "com.sap.piper.metadata.spec.inputs.params": { 87 "type": "object", 88 "additionalProperties": false, 89 "properties": { 90 "name": { "type": "string" }, 91 "type": { "type": "string" }, 92 "description": { "type": "string" }, 93 "mandatory": { "type": "boolean" }, 94 "default": {}, 95 "scope": { 96 "$ref": "#definitions/com.sap.piper.metadata.spec.inputs.params.scopeList" 97 }, 98 "aliases": { 99 "$ref": "#definitions/com.sap.piper.metadata.spec.inputs.params.aliasList" 100 } 101 }, 102 "required": ["name", "type", "scope"] 103 }, 104 "com.sap.piper.metadata.spec.inputs.params.scopeList": { 105 "type": "array", 106 "items": { 107 "type": "string", 108 "enum": ["GENERAL", "PARAMETERS", "STAGES", "STEPS"] 109 } 110 }, 111 "com.sap.piper.metadata.spec.inputs.params.aliasList": { 112 "type": "array", 113 "items": { 114 "type": "object", 115 "additionalProperties": false, 116 "properties": { 117 "name": { "type": "string" } 118 } 119 } 120 }, 121 "com.sap.piper.metadata.spec.containerList": { 122 "type": "array", 123 "items": { 124 "$ref": "https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json#/definitions/io.k8s.api.core.v1.Container" 125 } 126 } 127 } 128 }