-
Notifications
You must be signed in to change notification settings - Fork 433
/
task.json
199 lines (198 loc) · 6.23 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
188
189
190
191
192
193
194
195
196
197
198
199
{
"id": "661BC005-61BE-430F-B994-065BF08C0F39",
"name": "GenerateReleaseNotes",
"friendlyName": "Generate Release Notes",
"description": "Generates a release notes file in a format of your choice",
"helpMarkDown": "Version: #{Build.BuildNumber}#. [More Information](https://github.com/rfennell/vNextBuild/wiki/GenerateReleaseNotes%20-Tasks/)",
"category": "Utility",
"visibility": [
"Build"
],
"author": "Black Marble",
"version": {
"Major": 1,
"Minor": 0,
"Patch": 0
},
"minimumAgentVersion": "1.82.0",
"groups": [
{
"name": "advanced",
"displayName": "Advanced",
"isExpanded": false
},
{
"name": "outputs",
"displayName": "Outputs",
"isExpanded": false
}
],
"inputs": [
{
"name": "outputfile",
"type": "string",
"label": "Output file",
"defaultValue": "",
"required": true,
"helpMarkDown": "The name of the Markdown file to export e.g. $(Build.ArtifactStagingDirectory)\\releasenotes.md if within a build workflow "
},
{
"name": "outputVariableName",
"type": "string",
"label": "Output variable",
"defaultValue": "",
"required": false,
"helpMarkDown": "The name of the variable that the markdown output should be assigned to for use later in your workflow.",
"groupName": "outputs"
},
{
"name": "templateLocation",
"type": "pickList",
"label": "Template Location",
"defaultValue": "File",
"required": true,
"options": {
"File": "File",
"InLine": "InLine"
},
"helpMarkDown": "Select the template file source, file in source control or in line."
},
{
"name": "templatefile",
"type": "filePath",
"label": "Template file",
"defaultValue": "",
"required": true,
"helpMarkDown": "The name of the Markdown template.",
"visibleRule": "templateLocation = File"
},
{
"name": "inlinetemplate",
"type": "multiLine",
"label": "Template",
"defaultValue": "",
"required": true,
"helpMarkDown": "The Markdown template.",
"visibleRule": "templateLocation = InLine"
},
{
"name": "usedefaultcreds",
"type": "boolean",
"label": "Use default credentials",
"defaultValue": "False",
"required": false,
"helpMarkDown": "If true will use the credentials of the running agent as opposed to access token provided by build service.",
"groupName": "advanced"
},
{
"name": "emptySetText",
"type": "string",
"label": "Text for empty sets",
"defaultValue": "None",
"required": false,
"helpMarkDown": "This is the text that will be placed in the generated release notes if there are no work items or changesets/commits.",
"groupName": "advanced"
},
{
"name": "generateForOnlyPrimary",
"type": "boolean",
"label": "Generate for only primary artifact",
"defaultValue": "False",
"required": true,
"helpMarkDown": "If true will generate release notes for the primary build artifact (Release usage only)",
"groupName": "advanced"
},
{
"name": "generateForCurrentRelease",
"type": "boolean",
"label": "Generate for only this Release",
"defaultValue": "True",
"required": false,
"helpMarkDown": "If true will generate release notes for this release (Release usage only)",
"groupName": "advanced"
},
{
"name": "overrideStageName",
"type": "string",
"label": "Name of stage (override)",
"defaultValue": "",
"required": false,
"helpMarkDown": "If set uses this stage name to find the last succesful deployment, as opposed to the currently active stage (Release usage only)",
"groupName": "advanced",
"visibleRule": "generateForCurrentRelease = false"
},
{
"name": "maxWi",
"type": "integer",
"label": "Maximum Work Items to return",
"defaultValue": "50",
"required": false,
"helpMarkDown": "The maximum Work Items to return in the report",
"groupName": "advanced"
},
{
"name": "maxChanges",
"type": "integer",
"label": "Maximum Changeset/Commits to return",
"defaultValue": "50",
"required": false,
"helpMarkDown": "The maximum Changeset/Commits to return in the report",
"groupName": "advanced"
},
{
"name": "appendToFile",
"type": "boolean",
"label": "Append output file",
"defaultValue": "False",
"required": false,
"helpMarkDown": "A boolean flag whether to over-write output file or append to it.",
"groupName": "advanced"
},
{
"name": "showParents",
"type": "boolean",
"label": "Show parent workitems",
"defaultValue": "False",
"required": false,
"helpMarkDown": "A boolean flag whether to added parent work items of those associated with a build.",
"groupName": "advanced"
},
{
"name": "wiFilter",
"type": "string",
"label": "List of Work Item types to include",
"defaultValue": "",
"required": false,
"helpMarkDown": "A comma-separated list of Work Item types to include in the report. Use this to exclude Tasks, for instance.",
"groupName": "advanced",
"visibleRule": "showParents = true"
},
{
"name": "wiStateFilter",
"type": "string",
"label": "List of Work Item states to include",
"defaultValue": "",
"required": false,
"helpMarkDown": "A comma-separated list of Work Item states to include in the report.",
"groupName": "advanced",
"visibleRule": "showParents = true"
} ,
{
"name": "unifiedList",
"type": "boolean",
"label": "Unified WI/Commits",
"defaultValue": "False",
"required": false,
"helpMarkDown": "A boolean flag whether when running inside a release the WI/Commit for all builds are returned as a single list",
"groupName": "advanced"
}
],
"instanceNameFormat": "Generate release notes",
"execution": {
"PowerShell": {
"target": "$(currentDirectory)\\GenerateReleaseNotes.ps1",
"argumentFormat": "",
"workingDirectory": "$(currentDirectory)"
}
}
}