Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetLatestPatch sets patch name variable as null #293

Open
sstridsberg opened this issue Sep 11, 2023 · 0 comments
Open

GetLatestPatch sets patch name variable as null #293

sstridsberg opened this issue Sep 11, 2023 · 0 comments

Comments

@sstridsberg
Copy link

sstridsberg commented Sep 11, 2023

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant