github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/harness/yaml/testdata/pipeline.golden.json (about) 1 { 2 "pipeline": { 3 "identifier": "myPipeline1", 4 "name": "My Deployment Pipeline", 5 "description": "", 6 "properties": { 7 "ci": { 8 "codebase": { 9 "repoName": "mycode.git", 10 "connectorRef": "account.gitconnector", 11 "build": "<+input>" 12 } 13 } 14 }, 15 "stages": [ 16 { 17 "stage": { 18 "identifier": "stage1", 19 "name": "stage1", 20 "type": "CI", 21 "description": "Build artifacts off master and upload to artifacts repo", 22 "spec": { 23 "infrastructure": { 24 "type": "Kubernetes-direct", 25 "useFromStage": "", 26 "spec": { 27 "namespace": "harness-delegate", 28 "connectorRef": "cidelegate" 29 } 30 }, 31 "cloneCodebase": true, 32 "sharedPaths": [ 33 "myPath", 34 "myPath2" 35 ], 36 "variables": [ 37 { 38 "name": "REPLACE_USERNAME_HERE", 39 "type": "Secret", 40 "value": "REPLACE_USERNAME_HERE" 41 }, 42 { 43 "name": "param1", 44 "type": "Text", 45 "value": "value1" 46 } 47 ], 48 "serviceDependencies": [ 49 { 50 "identifier": "database", 51 "name": "database", 52 "type": "Service", 53 "description": "", 54 "spec": { 55 "envVariables": { 56 "kube_context": "myContext ${mySecret}" 57 }, 58 "entrypoint": [ 59 "mysqld" 60 ], 61 "args": [ 62 "--character-set-server=utf8mb4" 63 ], 64 "connectorRef": "np-quotecenter", 65 "image": "us.gcr.io/platform-205701/mysql:12", 66 "resources": { 67 "limits": { 68 "memory": "0B", 69 "cpu": "250m" 70 } 71 } 72 } 73 } 74 ], 75 "execution": { 76 "steps": [ 77 { 78 "step": { 79 "identifier": "buildcommand2", 80 "name": "stepName", 81 "description": "myDescription", 82 "type": "Run", 83 "timeout": "90s", 84 "skipCondition": "someExpression", 85 "spec": { 86 "envVariables": { 87 "key": "value1", 88 "key2": "val2" 89 }, 90 "outputVariables": [ 91 "var1", 92 "var2" 93 ], 94 "command": "some command or commands", 95 "connectorRef": "gcrConnector", 96 "image": "us.gcr.io/platform-205701/mysql:12", 97 "resources": { 98 "limits": { 99 "memory": "64MiB", 100 "cpu": "250m" 101 } 102 }, 103 "reports": 104 { 105 "type": "JUnit", 106 "spec": { 107 "paths": [ 108 "rspec.xml" 109 ] 110 } 111 } 112 } 113 } 114 } 115 ] 116 } 117 } 118 } 119 } 120 ] 121 } 122 }