We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a6448d commit a3c2adfCopy full SHA for a3c2adf
src/GitVersionTfsTask/Update-GitVersionTfsTaskVersion.ps1
@@ -5,6 +5,24 @@ param (
5
[string] $patch
6
)
7
8
+if ([string]::IsNullOrWhiteSpace($filePath)) {
9
+ throw "File path needs to be provided."
10
+}
11
+
12
+if ([string]::IsNullOrWhiteSpace($major)) {
13
+ throw "Major version number needs to be provided."
14
15
16
+if ([string]::IsNullOrWhiteSpace($minor)) {
17
+ throw "Minor version number needs to be provided."
18
19
20
+if ([string]::IsNullOrWhiteSpace($patch)) {
21
+ throw "Patch level needs to be provided."
22
23
24
+Write-Host "Set version in '$filePath' to $major.$minor.$patch"
25
26
# Get the task.json as a powershell object
27
$task = Get-Content -Raw -Path $filePath | ConvertFrom-Json
28
0 commit comments