mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
0eb03f7e75
commit
6ea9ee3d01
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ steps:
|
|||
[int]$PatternExpectedVersionNumbers = 4
|
||||
[int]$VersionNumbersInVersion = 4
|
||||
|
||||
Function Get-VersionString($numberOfVersions, $extractedBuildNumbers) {
|
||||
return [string]::Join('.',($extractedBuildNumbers | select -First ($numberOfVersions)))
|
||||
}
|
||||
|
||||
if ($BuildNumber -match $Pattern -ne $true) {
|
||||
Write-Host "Could not extract a version from [$BuildNumber] using pattern [$Pattern]"
|
||||
exit 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue