-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtask.json
187 lines (186 loc) · 6.13 KB
/
task.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
"id": "88e0bab6-9798-47cb-a37d-ef65f41992ae",
"name": "OcConditionalCmd",
"friendlyName": "Execute conditional oc command",
"description": "OpenShift execute CLI command if the condition is met.",
"author": "Red Hat",
"helpMarkDown": "See [getting started](https://github.com/redhat-developer/openshift-vsts/blob/master/docs/getting-started.md)",
"category": "Utility",
"visibility": [
"Build",
"Release"
],
"preview": true,
"demands": [],
"groups": [{
"name": "openshiftCluster",
"displayName": "OpenShift Cluster",
"isExpanded": true
},
{
"name": "commands",
"displayName": "Commands",
"isExpanded": true
}
],
"version": {
"Major": 4,
"Minor": 0,
"Patch": 1
},
"minimumAgentVersion": "3.232.1",
"instanceNameFormat": "Oc Conditional Cmd",
"inputs": [
{
"name": "connectionType",
"type": "pickList",
"label": "Service connection type",
"defaultValue": "OpenShift Connection Service",
"required": true,
"options": {
"OpenShift Connection Service": "OpenShift Connection Service",
"Runtime Configuration": "Set Up Configuration on Runtime"
},
"groupName": "openshiftCluster",
"helpMarkDown": "Select a service connection type."
},
{
"name": "openshiftService",
"type": "connectedService:openshift",
"label": "OpenShift service connection",
"groupName": "openshiftCluster",
"helpMarkDown": "Select OpenShift service connection to use.",
"required": true,
"visibleRule": "connectionType = OpenShift Connection Service"
},
{
"name": "configurationType",
"type": "radio",
"label": "Configuration type",
"defaultValue": "file",
"groupName": "openshiftCluster",
"helpMarkDown": "Type of configuration for oc command. It can be a file path or an inline script.",
"options": {
"file": "File Path",
"inline": "Inline Configuration"
},
"visibleRule": "connectionType = Runtime Configuration"
},
{
"name": "configurationPath",
"type": "filePath",
"label": "File Path",
"defaultValue": "",
"required": true,
"helpMarkDown": "Filename, directory, or URL to the kubeconfig file that will be used with the commands.",
"groupName": "openshiftCluster",
"visibleRule": "configurationType = file"
},
{
"name": "inlineConfig",
"type": "multiLine",
"properties": {
"resizable": "true",
"rows": "10",
"maxLength": "5000"
},
"required": true,
"defaultValue": "",
"label": "Inline configuration",
"helpMarkDown": "Inline kubeconfig for oc command",
"groupName": "openshiftCluster",
"visibleRule": "configurationType = inline"
},
{
"name": "version",
"type": "string",
"label": "Version of oc to use",
"defaultValue": "",
"required": false,
"groupName": "commands",
"helpMarkDown": "Select the oc version to use e.g. 'v3.10.0' (leave blank for latest). You can also specify a direct URL to a oc release bundle."
},
{
"name": "cmd",
"type": "string",
"label": "Command to run",
"defaultValue": "",
"required": true,
"groupName": "commands",
"helpMarkDown": "Specify the oc command to run."
},
{
"name": "ignoreFlag",
"type": "boolean",
"label": "Ignore non success return value",
"defaultValue": "false",
"required": false,
"groupName": "commands",
"helpMarkDown": "Specify if the non success return value of the oc command run has to be ignored. E.g if the command oc create/delete/... fail because the resource has already been created/deleted/.. the pipeline will continue its execution"
},
{
"name": "condition",
"type": "pickList",
"label": "Condition type",
"defaultValue": "exists",
"required": true,
"options": {
"exists": "Exists",
"not_exists": "Not Exists"
},
"groupName": "commands",
"helpMarkDown": "Select the condition to be verified on the resource."
},
{
"name": "resource",
"type": "string",
"label": "Resource on which to verify the condition",
"defaultValue": "",
"required": true,
"groupName": "commands",
"helpMarkDown": "Specify the resource on which to verify the condition."
},
{
"name": "timedout",
"type": "string",
"label": "Time (in milliseconds) after which to stop the execution",
"defaultValue": "",
"required": false,
"groupName": "commands",
"helpMarkDown": "Specify the time (in milliseconds) after which the extension should stop the execution."
},
{
"name": "noTimedOutError",
"type": "boolean",
"label": "Skip timed out error",
"defaultValue": "false",
"required": false,
"groupName": "commands",
"helpMarkDown": "If checked there will be no timedout error. If the timedout elaspes the extension will try to execute the command anyway."
},
{
"name": "uselocalOc",
"type": "boolean",
"label": "Use local oc executable",
"defaultValue": "false",
"required": false,
"groupName": "commands",
"helpMarkDown": "Check if oc is already installed in the machine and use that if available"
},
{
"name": "proxy",
"type": "string",
"label": "Use proxy to download oc executable",
"defaultValue": "",
"required": false,
"groupName": "commands",
"helpMarkDown": "make use of a proxy to download oc executable"
}
],
"execution": {
"Node20_1": {
"target": "lib/oc-conditional-exec-task.js",
"workingDirectory": "$(currentDirectory)"
}
}
}