This Build Information step will throw this error if it has been added to a Release pipeline, as it doesn't have access to required information.
Unfortunately there is no way to specify that the step shouldn't be available in Release pipeline. This is a limitation in the Azure DevOps plugin system and not something we can change.
What we should do is detect the scenario and return an error that actually helps the user work out what is wrong.
This Build Information step will throw this error if it has been added to a Release pipeline, as it doesn't have access to required information.
Unfortunately there is no way to specify that the step shouldn't be available in Release pipeline. This is a limitation in the Azure DevOps plugin system and not something we can change.
What we should do is detect the scenario and return an error that actually helps the user work out what is wrong.