When running a pipeline and there is no patch, the task sets the patch name variable to null. If I want to set up a pipeline capable of running both with and without patches, this doesn't work.
If the task.setvariable moved to within the if-statement this would resolve the issue, or if a nulloremtpy is implemented on line 57:
if ([string]::IsNullOrEmpty($patchVariableName))
{
Write-Host "##vso[task.setvariable variable=$patchVariableName]$name"
}
When running a pipeline and there is no patch, the task sets the patch name variable to null. If I want to set up a pipeline capable of running both with and without patches, this doesn't work.
If the task.setvariable moved to within the if-statement this would resolve the issue, or if a nulloremtpy is implemented on line 57: