-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathtask.json
More file actions
164 lines (164 loc) · 6.05 KB
/
task.json
File metadata and controls
164 lines (164 loc) · 6.05 KB
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
{
"id": "5cfb06f3-4e91-44d8-a850-85c2dc11f36f",
"name": "JFrogPip",
"friendlyName": "JFrog Pip",
"description": "Run 'pip install' while resolving the Python dependencies from Artifactory. This task also allows collecting build-info. The collected build-info can be later published to Artifactory by the \"JFrog Publish Build Info\" task.",
"author": "JFrog",
"helpMarkDown": "[More Information](https://github.com/jfrog/jfrog-azure-devops-extension#JFrog-Pip-Task)",
"category": "Utility",
"visibility": [
"Build",
"Release"
],
"version": {
"Major": "1",
"Minor": "12",
"Patch": "7"
},
"demands": [],
"minimumAgentVersion": "4.248.0",
"instanceNameFormat": "JFrog Pip",
"groups": [
{
"name": "advancedInstall",
"displayName": "Advanced",
"isExpanded": false,
"visibleRule": "command = install"
}
],
"inputs": [
{
"name": "artifactoryConnection",
"type": "connectedService:jfrogArtifactoryService",
"label": "Artifactory service connection",
"defaultValue": "",
"required": true,
"helpMarkDown": "Artifactory service to be used by this task."
},
{
"name": "command",
"type": "pickList",
"label": "Command",
"defaultValue": "install",
"helpMarkDown": "The pip command",
"required": "true",
"properties": {
"EditableOptions": "False"
},
"options": {
"install": "install"
}
},
{
"name": "arguments",
"type": "string",
"label": "Arguments",
"defaultValue": "",
"helpMarkDown": "The arguments which will be passed to pip for execution.",
"required": false,
"visibleRule": "command = install"
},
{
"name": "targetResolveRepo",
"type": "pickList",
"label": "Resolution repository",
"defaultValue": "",
"required": true,
"visibleRule": "command = install",
"helpMarkDown": "Sets the resolution repository.",
"properties": {
"EditableOptions": "True"
}
},
{
"name": "collectBuildInfo",
"type": "boolean",
"label": "Collect build info",
"defaultValue": "false",
"required": false,
"helpMarkDown": "Select to collect build info."
},
{
"name": "buildName",
"type": "string",
"label": "Build name",
"defaultValue": "$(Build.DefinitionName)",
"required": true,
"visibleRule": "collectBuildInfo = true",
"helpMarkDown": "Build name.\nTo use the default build name of the pipeline, set the field to '$(Build.DefinitionName)'.\nThe collected build-info should be published to Artifactory using the 'JFrog Publish Build Info' task."
},
{
"name": "buildNumber",
"type": "string",
"label": "Build number",
"defaultValue": "$(Build.BuildNumber)",
"required": true,
"visibleRule": "collectBuildInfo = true",
"helpMarkDown": "Build number.\nTo use the default build number of the pipeline, set the field to '$(Build.BuildNumber)'.\nThe collected build-info should be published to Artifactory using the 'JFrog Publish Build Info' task."
},
{
"name": "projectKey",
"type": "string",
"label": "Project key",
"defaultValue": "",
"required": false,
"visibleRule": "collectBuildInfo=true",
"helpMarkDown": "JFrog Project key."
},
{
"name": "includeEnvVars",
"type": "boolean",
"label": "Include environment variables",
"defaultValue": "false",
"required": false,
"visibleRule": "collectBuildInfo = true",
"helpMarkDown": "Select to include environment variables in the published build info."
},
{
"name": "noPipCache",
"type": "boolean",
"label": "Disable local pip cache",
"defaultValue": "false",
"helpMarkDown": "Prevents pip from using cached packages.",
"required": "false",
"groupName": "advancedInstall"
},
{
"name": "virtualEnvActivation",
"type": "string",
"label": "Virtual environment setup command",
"defaultValue": "",
"helpMarkDown": "It is mostly recommended to run pip commands inside a virtual environment, to achieve isolation for the pip build. To follow this recommendation, provide a shell command which sets up a virtual environment.",
"required": "false",
"groupName": "advancedInstall"
},
{
"name": "workingDirectory",
"type": "filePath",
"label": "Working Directory",
"defaultValue": "",
"required": false,
"groupName": "advancedInstall",
"helpMarkDown": "The working directory where the command will run. When empty, the value of '$(System.DefaultWorkingDirectory)' is used."
}
],
"dataSourceBindings": [
{
"endpointId": "$(artifactoryConnection)",
"endpointURL": "{{endpoint.url}}/api/repositories",
"target": "targetResolveRepo",
"resultSelector": "jsonpath:$[?(@.packageType=='Pypi')]",
"resultTemplate": "{ \"Value\" : \"{{{key}}}\", \"DisplayValue\" : \"{{{key}}}\" }"
}
],
"execution": {
"Node20_1": {
"target": "pipBuild.js",
"workingDirectory": "$(currentDirectory)"
},
"Node24": {
"target": "pipBuild.js",
"workingDirectory": "$(currentDirectory)"
}
}
}