My build fails with below error. I want to get this option enabled in pipeline. Could someone help me with how can I do this? I can select this option in additional options section in release pipeline. But not sure on how to do it in build pipeline.
##[error]OAuth token not found. Make sure to have 'Allow Scripts to Access OAuth Token' enabled in the build definition.