22 lines
631 B
PowerShell
22 lines
631 B
PowerShell
function Get-ConfluenceBaseUrl {
|
|
<#
|
|
.SYNOPSIS
|
|
Return the base Confluence url.
|
|
May read the value from an environment variable if present
|
|
#>
|
|
[CmdletBinding()]
|
|
[OutputType([string])]
|
|
param (
|
|
)
|
|
|
|
$logLead = (Get-LogLeadName)
|
|
|
|
$environmentVariable = (Get-EnvironmentVariable "CONFLUENCE_URL" 6>$null 5>$null 4>$null 3>$null)
|
|
if (![string]::IsNullOrWhiteSpace($environmentVariable)) {
|
|
Write-Information "$logLead : Returning environment variable"
|
|
return $environmentVariable
|
|
}
|
|
|
|
Write-Information "$logLead : Returning default value"
|
|
return "https://confluence.alkami.com"
|
|
} |