-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtask.json
146 lines (146 loc) · 4.43 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
{
"id": "ebaf1cdc-a60f-4e57-ba29-e3b8f80aeb1e",
"name": "oc-cmd",
"friendlyName": "Execute oc command",
"description": "OpenShift execute CLI command.",
"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-cmd $(message)",
"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": "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-exec-task.js",
"workingDirectory": "$(currentDirectory)"
}
}
}