21 lines
607 B
PowerShell
21 lines
607 B
PowerShell
|
function Get-JiraBaseUrl {
|
||
|
<#
|
||
|
.SYNOPSIS
|
||
|
Return the base Jira url.
|
||
|
May read the value from an environment variable if present
|
||
|
#>
|
||
|
[CmdletBinding()]
|
||
|
[OutputType([string])]
|
||
|
param (
|
||
|
)
|
||
|
$logLead = (Get-LogLeadName)
|
||
|
|
||
|
$environmentVariable = (Get-EnvironmentVariable "JIRA_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://jira.alkami.com/"
|
||
|
}
|