@itentialopensource/adapter-jenkins 0.2.0 → 0.3.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.
Files changed (44) hide show
  1. package/CALLS.md +30 -0
  2. package/CHANGELOG.md +16 -0
  3. package/CONTRIBUTING.md +1 -160
  4. package/ENHANCE.md +2 -2
  5. package/README.md +32 -23
  6. package/adapter.js +157 -329
  7. package/adapterBase.js +549 -879
  8. package/changelogs/changelog.md +60 -0
  9. package/metadata.json +49 -0
  10. package/package.json +24 -25
  11. package/pronghorn.json +981 -642
  12. package/propertiesSchema.json +431 -31
  13. package/refs?service=git-upload-pack +0 -0
  14. package/report/adapter-openapi.json +283 -0
  15. package/report/adapter-openapi.yaml +199 -0
  16. package/report/adapterInfo.json +8 -8
  17. package/report/updateReport1691507745232.json +120 -0
  18. package/report/updateReport1692202738085.json +120 -0
  19. package/report/updateReport1694455436235.json +120 -0
  20. package/report/updateReport1694457490029.json +120 -0
  21. package/report/updateReport1694463089408.json +120 -0
  22. package/report/updateReport1698421354015.json +120 -0
  23. package/sampleProperties.json +63 -2
  24. package/test/integration/adapterTestBasicGet.js +2 -4
  25. package/test/integration/adapterTestConnectivity.js +91 -42
  26. package/test/integration/adapterTestIntegration.js +130 -2
  27. package/test/unit/adapterBaseTestUnit.js +388 -313
  28. package/test/unit/adapterTestUnit.js +338 -112
  29. package/utils/adapterInfo.js +1 -1
  30. package/utils/addAuth.js +1 -1
  31. package/utils/artifactize.js +1 -1
  32. package/utils/checkMigrate.js +1 -1
  33. package/utils/entitiesToDB.js +2 -2
  34. package/utils/findPath.js +1 -1
  35. package/utils/methodDocumentor.js +273 -0
  36. package/utils/modify.js +13 -15
  37. package/utils/packModificationScript.js +1 -1
  38. package/utils/pre-commit.sh +2 -0
  39. package/utils/taskMover.js +309 -0
  40. package/utils/tbScript.js +89 -34
  41. package/utils/tbUtils.js +41 -21
  42. package/utils/testRunner.js +1 -1
  43. package/utils/troubleshootingAdapter.js +9 -6
  44. package/workflows/README.md +0 -3
Binary file
@@ -0,0 +1,283 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "Jenkins",
5
+ "description": "This is a swagger document for integration to Jenkins",
6
+ "contact": {
7
+ "email": "apiteam@swagger.io"
8
+ },
9
+ "version": "1.0"
10
+ },
11
+ "servers": [
12
+ {
13
+ "url": "https:///myjenkins/",
14
+ "variables": {}
15
+ },
16
+ {
17
+ "url": "http:///myjenkins/",
18
+ "variables": {}
19
+ },
20
+ {
21
+ "url": "https://petstore.swagger.io/oauth",
22
+ "variables": {}
23
+ }
24
+ ],
25
+ "paths": {
26
+ "/job/{pipeline}/build": {
27
+ "post": {
28
+ "tags": [
29
+ "Build"
30
+ ],
31
+ "summary": "JobBuildByPipeline_POST",
32
+ "operationId": "JobBuildByPipeline_POST",
33
+ "parameters": [
34
+ {
35
+ "name": "pipeline",
36
+ "in": "path",
37
+ "description": "",
38
+ "required": true,
39
+ "style": "simple",
40
+ "schema": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ ],
45
+ "responses": {
46
+ "200": {
47
+ "description": "successful operation",
48
+ "headers": {},
49
+ "content": {
50
+ "text/plain": {
51
+ "schema": {
52
+ "type": "string",
53
+ "description": "successful operation"
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "400": {
59
+ "description": ""
60
+ }
61
+ },
62
+ "deprecated": false
63
+ }
64
+ },
65
+ "/job/{pipeline}/buildWithParameters": {
66
+ "post": {
67
+ "tags": [
68
+ "Build"
69
+ ],
70
+ "summary": "JobBuildWithParametersByPipeline_POST",
71
+ "operationId": "JobBuildWithParametersByPipeline_POST",
72
+ "parameters": [
73
+ {
74
+ "name": "pipeline",
75
+ "in": "path",
76
+ "description": "",
77
+ "required": true,
78
+ "style": "simple",
79
+ "schema": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ {
84
+ "name": "Parameter1",
85
+ "in": "query",
86
+ "description": "",
87
+ "style": "form",
88
+ "explode": true,
89
+ "schema": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ {
94
+ "name": "Parameter2",
95
+ "in": "query",
96
+ "description": "",
97
+ "style": "form",
98
+ "explode": true,
99
+ "schema": {
100
+ "type": "string"
101
+ }
102
+ }
103
+ ],
104
+ "responses": {
105
+ "200": {
106
+ "description": "successful operation",
107
+ "headers": {},
108
+ "content": {
109
+ "text/plain": {
110
+ "schema": {
111
+ "type": "string",
112
+ "description": "successful operation"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "400": {
118
+ "description": ""
119
+ }
120
+ },
121
+ "deprecated": false
122
+ }
123
+ },
124
+ "/job/{pipeline}/lastBuild/api/json": {
125
+ "get": {
126
+ "tags": [
127
+ "Build"
128
+ ],
129
+ "summary": "JobLastBuildApiJsonByPipeline_GET",
130
+ "operationId": "JobLastBuildApiJsonByPipeline_GET",
131
+ "parameters": [
132
+ {
133
+ "name": "pipeline",
134
+ "in": "path",
135
+ "description": "",
136
+ "required": true,
137
+ "style": "simple",
138
+ "schema": {
139
+ "type": "string"
140
+ }
141
+ }
142
+ ],
143
+ "responses": {
144
+ "200": {
145
+ "description": "successful operation",
146
+ "headers": {},
147
+ "content": {
148
+ "text/plain": {
149
+ "schema": {
150
+ "type": "string",
151
+ "description": "successful operation"
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "400": {
157
+ "description": ""
158
+ }
159
+ },
160
+ "deprecated": false
161
+ }
162
+ },
163
+ "/job/{pipeline}/lastBuild/consoleText": {
164
+ "get": {
165
+ "tags": [
166
+ "Build"
167
+ ],
168
+ "summary": "JobLastBuildConsoleTextByPipeline_GET",
169
+ "operationId": "JobLastBuildConsoleTextByPipeline_GET",
170
+ "parameters": [
171
+ {
172
+ "name": "pipeline",
173
+ "in": "path",
174
+ "description": "",
175
+ "required": true,
176
+ "style": "simple",
177
+ "schema": {
178
+ "type": "string"
179
+ }
180
+ }
181
+ ],
182
+ "responses": {
183
+ "200": {
184
+ "description": "successful operation",
185
+ "headers": {},
186
+ "content": {
187
+ "text/plain": {
188
+ "schema": {
189
+ "type": "string",
190
+ "description": "successful operation"
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "400": {
196
+ "description": ""
197
+ }
198
+ },
199
+ "deprecated": false
200
+ }
201
+ },
202
+ "/job/{pipeline}/{buildId}/api/json": {
203
+ "get": {
204
+ "tags": [
205
+ "Build"
206
+ ],
207
+ "summary": "JobApiJsonByPipelineAndBuildId_GET",
208
+ "operationId": "JobApiJsonByPipelineAndBuildId_GET",
209
+ "parameters": [
210
+ {
211
+ "name": "pipeline",
212
+ "in": "path",
213
+ "description": "",
214
+ "required": true,
215
+ "style": "simple",
216
+ "schema": {
217
+ "type": "string"
218
+ }
219
+ },
220
+ {
221
+ "name": "buildId",
222
+ "in": "path",
223
+ "description": "",
224
+ "required": true,
225
+ "style": "simple",
226
+ "schema": {
227
+ "type": "number",
228
+ "format": "double"
229
+ }
230
+ }
231
+ ],
232
+ "responses": {
233
+ "200": {
234
+ "description": "successful operation",
235
+ "headers": {},
236
+ "content": {
237
+ "text/plain": {
238
+ "schema": {
239
+ "type": "string",
240
+ "description": "successful operation"
241
+ }
242
+ }
243
+ }
244
+ },
245
+ "400": {
246
+ "description": ""
247
+ }
248
+ },
249
+ "deprecated": false
250
+ }
251
+ }
252
+ },
253
+ "components": {
254
+ "securitySchemes": {
255
+ "oauth2": {
256
+ "type": "oauth2",
257
+ "flows": {
258
+ "implicit": {
259
+ "authorizationUrl": "https://petstore.swagger.io/oauth/authorize",
260
+ "scopes": {
261
+ "write:pets": "modify pets in your account",
262
+ "read:pets": "read your pets"
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "security": [
270
+ {
271
+ "oauth2": []
272
+ }
273
+ ],
274
+ "tags": [
275
+ {
276
+ "name": "Build"
277
+ }
278
+ ],
279
+ "externalDocs": {
280
+ "description": "Find out more about Swagger",
281
+ "url": "http://swagger.io"
282
+ }
283
+ }
@@ -0,0 +1,199 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Jenkins
4
+ description: This is a swagger document for integration to Jenkins
5
+ contact:
6
+ email: apiteam@swagger.io
7
+ version: '1.0'
8
+ servers:
9
+ - url: https:///myjenkins/
10
+ variables: {}
11
+ - url: http:///myjenkins/
12
+ variables: {}
13
+ - url: https://petstore.swagger.io/oauth
14
+ variables: {}
15
+ paths:
16
+ /job/{pipeline}/build:
17
+ post:
18
+ tags:
19
+ - Build
20
+ summary: JobBuildByPipeline_POST
21
+ description: ''
22
+ operationId: JobBuildByPipeline_POST
23
+ parameters:
24
+ - name: pipeline
25
+ in: path
26
+ description: ''
27
+ required: true
28
+ style: simple
29
+ schema:
30
+ type: string
31
+ responses:
32
+ '200':
33
+ description: successful operation
34
+ headers: {}
35
+ content:
36
+ text/plain:
37
+ schema:
38
+ type: string
39
+ description: successful operation
40
+ '400':
41
+ description: ''
42
+ headers: {}
43
+ content: {}
44
+ deprecated: false
45
+ /job/{pipeline}/buildWithParameters:
46
+ post:
47
+ tags:
48
+ - Build
49
+ summary: JobBuildWithParametersByPipeline_POST
50
+ description: ''
51
+ operationId: JobBuildWithParametersByPipeline_POST
52
+ parameters:
53
+ - name: pipeline
54
+ in: path
55
+ description: ''
56
+ required: true
57
+ style: simple
58
+ schema:
59
+ type: string
60
+ - name: Parameter1
61
+ in: query
62
+ description: ''
63
+ style: form
64
+ explode: true
65
+ schema:
66
+ type: string
67
+ - name: Parameter2
68
+ in: query
69
+ description: ''
70
+ style: form
71
+ explode: true
72
+ schema:
73
+ type: string
74
+ responses:
75
+ '200':
76
+ description: successful operation
77
+ headers: {}
78
+ content:
79
+ text/plain:
80
+ schema:
81
+ type: string
82
+ description: successful operation
83
+ '400':
84
+ description: ''
85
+ headers: {}
86
+ content: {}
87
+ deprecated: false
88
+ /job/{pipeline}/lastBuild/api/json:
89
+ get:
90
+ tags:
91
+ - Build
92
+ summary: JobLastBuildApiJsonByPipeline_GET
93
+ description: ''
94
+ operationId: JobLastBuildApiJsonByPipeline_GET
95
+ parameters:
96
+ - name: pipeline
97
+ in: path
98
+ description: ''
99
+ required: true
100
+ style: simple
101
+ schema:
102
+ type: string
103
+ responses:
104
+ '200':
105
+ description: successful operation
106
+ headers: {}
107
+ content:
108
+ text/plain:
109
+ schema:
110
+ type: string
111
+ description: successful operation
112
+ '400':
113
+ description: ''
114
+ headers: {}
115
+ content: {}
116
+ deprecated: false
117
+ /job/{pipeline}/lastBuild/consoleText:
118
+ get:
119
+ tags:
120
+ - Build
121
+ summary: JobLastBuildConsoleTextByPipeline_GET
122
+ description: ''
123
+ operationId: JobLastBuildConsoleTextByPipeline_GET
124
+ parameters:
125
+ - name: pipeline
126
+ in: path
127
+ description: ''
128
+ required: true
129
+ style: simple
130
+ schema:
131
+ type: string
132
+ responses:
133
+ '200':
134
+ description: successful operation
135
+ headers: {}
136
+ content:
137
+ text/plain:
138
+ schema:
139
+ type: string
140
+ description: successful operation
141
+ '400':
142
+ description: ''
143
+ headers: {}
144
+ content: {}
145
+ deprecated: false
146
+ /job/{pipeline}/{buildId}/api/json:
147
+ get:
148
+ tags:
149
+ - Build
150
+ summary: JobApiJsonByPipelineAndBuildId_GET
151
+ description: ''
152
+ operationId: JobApiJsonByPipelineAndBuildId_GET
153
+ parameters:
154
+ - name: pipeline
155
+ in: path
156
+ description: ''
157
+ required: true
158
+ style: simple
159
+ schema:
160
+ type: string
161
+ - name: buildId
162
+ in: path
163
+ description: ''
164
+ required: true
165
+ style: simple
166
+ schema:
167
+ type: number
168
+ format: double
169
+ responses:
170
+ '200':
171
+ description: successful operation
172
+ headers: {}
173
+ content:
174
+ text/plain:
175
+ schema:
176
+ type: string
177
+ description: successful operation
178
+ '400':
179
+ description: ''
180
+ headers: {}
181
+ content: {}
182
+ deprecated: false
183
+ components:
184
+ securitySchemes:
185
+ oauth2:
186
+ type: oauth2
187
+ flows:
188
+ implicit:
189
+ authorizationUrl: https:///myjenkins/authorize
190
+ scopes:
191
+ write:pets: modify pets in your account
192
+ read:pets: read your pets
193
+ security:
194
+ - oauth2: []
195
+ tags:
196
+ - name: Build
197
+ externalDocs:
198
+ description: Find out more about Swagger
199
+ url: http://swagger.io
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.7",
3
- "configLines": 2306,
4
- "scriptLines": 1707,
5
- "codeLines": 3008,
6
- "testLines": 3050,
7
- "testCases": 133,
8
- "totalCodeLines": 7765,
9
- "wfTasks": 22
2
+ "version": "0.2.0",
3
+ "configLines": 3045,
4
+ "scriptLines": 1783,
5
+ "codeLines": 2506,
6
+ "testLines": 3526,
7
+ "testCases": 163,
8
+ "totalCodeLines": 7815,
9
+ "wfTasks": 30
10
10
  }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 17
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 1665
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 79
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 603
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 14
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1350
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3618
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 93
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }