mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
pipeline file changes
This commit is contained in:
parent
25a7dadbbe
commit
863129e732
1 changed files with 7 additions and 0 deletions
|
|
@ -24,4 +24,11 @@ steps:
|
||||||
Write-Host "Could not extract a version from [$BuildNumber] using pattern [$Pattern]"
|
Write-Host "Could not extract a version from [$BuildNumber] using pattern [$Pattern]"
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set version variables
|
||||||
|
$extractedBuildNumbers = @($Matches[0].Split(([char[]]$PatternSplitCharacters)))
|
||||||
|
if ($extractedBuildNumbers.Length -ne $PatternExpectedVersionNumbers) {
|
||||||
|
Write-Host "The extracted build number $($Matches[0]) does not contain the expected $PatternExpectedVersionNumbers elements"
|
||||||
|
exit 2
|
||||||
|
}
|
||||||
pwsh: true
|
pwsh: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue