-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtask.json
120 lines (120 loc) · 3.53 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
{
"id": "44babac3-ab28-4f68-b843-bf2c295a4a2d",
"name": "oc-setup",
"friendlyName": "Install and setup oc",
"description": "Installs oc and configures the PATH and KUBECONFIG environment variables.",
"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-setup $(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",
"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": "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-setup-task.js",
"workingDirectory": "$(currentDirectory)"
}
}
}