20 lines
418 B
PowerShell
20 lines
418 B
PowerShell
|
function Select-AlkamiTeaServers {
|
||
|
<#
|
||
|
.SYNOPSIS
|
||
|
Filters TeamCity servers from a list of servers by hostname convention.
|
||
|
#>
|
||
|
[CmdletBinding()]
|
||
|
Param(
|
||
|
[AllowNull()]
|
||
|
[AllowEmptyCollection()]
|
||
|
[Parameter(Mandatory = $true)]
|
||
|
[string[]]$Servers
|
||
|
)
|
||
|
|
||
|
$result = ($Servers -match "\bTEA")
|
||
|
if ($result -eq $false) {
|
||
|
return $null
|
||
|
}
|
||
|
return $result
|
||
|
}
|