-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.json
110 lines (110 loc) · 2.86 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
{
"id": "89ee00a2-b353-4df4-85a4-6137298a2169",
"name": "IncrementVersion",
"friendlyName": "Increment Version",
"description": "Inc version from AssemblyInfo",
"author": "Tomer Levitt",
"helpMarkDown": "Increment Version from AssemblyInfo and set it into build variable. Task icon taken from https://icons8.com/",
"category": "Utility",
"visibility": [
"Build"
],
"version": {
"Major": "0",
"Minor": "1",
"Patch": "42"
},
"minimumAgentVersion": "1.95.0",
"instanceNameFormat": "Increment Version",
"groups": [
{
"name": "increment",
"displayName": "Increment",
"isExpanded": true
},
{
"name": "advanced",
"displayName": "Advanced",
"isExpanded": true
}
],
"inputs": [{
"name": "filePath",
"type": "filePath",
"label": "File Path",
"groupName": "increment",
"defaultValue": "",
"required": true,
"helpMarkDown": "Select File taht contain version (AssemblyInfo/csproj)"
},
{
"name": "versionType",
"type": "pickList",
"label": "Version Type",
"groupName": "increment",
"defaultValue": "Revision",
"required": true,
"options": {
"None": "None",
"Major": "Major",
"Minor": "Minor",
"Build": "Build",
"Revision": "Revision",
"Custom": "Custom"
},
"helpMarkDown": "Select increment type: None, Major, Minor, Build, Revision or Custom type"
},
{
"name": "CustomType",
"type": "string",
"label": "Custom Version Type",
"groupName": "increment",
"defaultValue": "$(versionType)",
"required": false,
"visibleRule": "versionType == Custom",
"helpMarkDown": "Select increment type: None (0), Major (1), Minor (2), Build (3), Revision(4) or Specefic Version"
},
{
"name": "variableName",
"type": "string",
"label": "Return New Version",
"groupName": "increment",
"defaultValue": "Version",
"required": true,
"helpMarkDown": "The version number will be updated with a variable in the defined name (only if there was a change in the version)"
},
{
"name": "versionProperty",
"type": "pickList",
"label": "Version Property",
"groupName": "advanced",
"defaultValue": "AssemblyVersion",
"required": true,
"options": {
"AllCSVersion": "AssemblyVersion & AssemblyFileVersion (cs)",
"AssemblyVersion": "AssemblyVersion (cs & csproj)",
"AssemblyFileVersion": "AssemblyFileVersion (cs)",
"FileVersion": "FileVersion (csproj)",
"Version": "Version (csproj)"
},
"helpMarkDown": "Get Current Version from property value."
},
{
"name": "updateIncVersion",
"type": "boolean",
"label": "Update Version",
"groupName": "advanced",
"defaultValue": "False",
"required": true,
"helpMarkDown": "Check out file & and update version number"
}],
"execution": {
"PowerShell3": {
"target": "IncreaseVersion.ps1",
"platforms": [
"windows"
],
"workingDirectory": "$(currentDirectory)"
}
}
}